Could not load host key


Recommended Posts

just to add to this old topic - I experienced the same thing, after a recent reboot, SSH stopped working.  I had a look in the /etc/ssh directory and found the keyfiles were there, but were all zero-byte:

 

root@heartofgold:/etc/ssh# ls -lh
total 252K
-rw------- 1 root root 242K Sep 19 01:07 moduli
-rw------- 1 root root 1.7K Sep 19 01:07 ssh_config
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_dsa_key
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_dsa_key.pub
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_ecdsa_key
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_ecdsa_key.pub
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_ed25519_key
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_ed25519_key.pub
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_rsa_key
-rw------- 1 root root    0 Feb 13 12:28 ssh_host_rsa_key.pub
-rw------- 1 root root 3.6K Sep 19 01:07 sshd_config

 

I nuked them from here (actually I nuked /etc/ssh itself) and rebooted, but they were recreated the same way.  Going to try nuking them from the flash...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.