mungler Posted February 13, 2017 Share Posted February 13, 2017 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... Quote Link to comment
gubbgnutten Posted February 13, 2017 Share Posted February 13, 2017 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... Removing them from the flash drive should work better. /etc/ssh only exists in RAM and is populated with files from the flash drive during startup. Quote Link to comment
Recommended Posts
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.