February 13, 20179 yr 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...
February 13, 20179 yr 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.
Archived
This topic is now archived and is closed to further replies.