OCI: "sshd.service" fails to start on boot
The sshd.service on a linux instance fails to start on boot, with the following message is seen on the console during the boot process:
Failed to start OpenSSH server daemon. See 'systemctl status sshd.service' for details.
The system log messages show the following errors from the sshd service:
# journalctl -u sshd Oct 12 09:47:02 hostname sshd[23241]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@ Oct 12 09:47:02 hostname sshd[23241]: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ Oct 12 09:47:02 hostname sshd[23241]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@ Oct 12 09:47:02 hostname sshd[23241]: Permissions 0640 for '/etc/ssh/ssh_host_rsa_key' are too open. Oct 12 09:47:02 hostname sshd[23241]: It is required that your private key files are NOT accessible by others. Oct 12 09:47:02 hostname sshd[23241]: This private key will be ignored. Oct 12 09:47:02 hostname sshd[23241]: key_load_private: bad permissions Oct 12 09:47:02 hostname sshd[23241]: Could not load host key: /etc/ssh/ssh_host_rsa_key Oct 12 09:47:02 hostname sshd[23241]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Oct 12 09:47:02 hostname sshd[23241]: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Tagged:
1