✏️ 正在编辑: disable-sshd-keygen-if-cloud-init-active.conf
路径:
/etc/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
💾 保存文件
← 返回文件管理器