文件操作 - disable-sshd-keygen-if-cloud-init-active.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/sshd-keygen@.service.d/disable-sshd-keygen-if-cloud-init-active.conf
编辑文件内容
# In some cloud-init enabled images the sshd-keygen template service may race # with cloud-init during boot causing issues with host key generation. This # drop-in config adds a condition to sshd-keygen@.service if it exists and # prevents the sshd-keygen units from running *if* cloud-init is going to run. # [Unit] ConditionPathExists=!/run/systemd/generator.early/multi-user.target.wants/cloud-init.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件