sshd: Could not load host key

[Description]

root@slitaz:/etc/ssh# /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
 
[Solution]
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
 
[Note]
Letting the passphrase null(-N ""), otherwise sshd can't load them even if key exists!
ref about this:
http://fixunix.com/ssh/364650-could-not-load-host-key-but-keys-exist.html
 

 

你可能感兴趣的:(SSHD,ssh-keygen)