/etc/ssh/ssh_host_rsa_key fails to be generated:
[root@localhost ~]# cloud-init status status: done [root@localhost ~]# systemctl status cloud-init ○ cloud-init.service - Initial cloud-init job (metadata service crawler) Loaded: loaded (/usr/lib/systemd/system/cloud-init.service; enabled; vendor preset: disabled) Active: inactive (dead)
Feb 04 15:20:21 localhost cloud-init[1909]: ci-info: ... ... ... ... [root@localhost ~]# rm -rf /etc/ssh/ssh_host_rsa_key [root@localhost ~]# systemctl restart sshd [root@localhost ~]# ll /etc/ssh/ssh_host_rsa_key ls: cannot access '/etc/ssh/ssh_host_rsa_key': No such file or directory [root@localhost ~]#
/etc/ssh/ ssh_host_ rsa_key fails to be generated:
[root@localhost ~]# cloud-init status systemd/ system/ cloud-init. service; enabled; vendor preset: disabled)
status: done
[root@localhost ~]# systemctl status cloud-init
○ cloud-init.service - Initial cloud-init job (metadata service crawler)
Loaded: loaded (/usr/lib/
Active: inactive (dead)
Feb 04 15:20:21 localhost cloud-init[1909]: ci-info: ... ... ssh_host_ rsa_key ssh_host_ rsa_key ssh_host_ rsa_key' : No such file or directory
... ...
[root@localhost ~]# rm -rf /etc/ssh/
[root@localhost ~]# systemctl restart sshd
[root@localhost ~]# ll /etc/ssh/
ls: cannot access '/etc/ssh/
[root@localhost ~]#