sshd failing to start
When I attempt to start sshd, it displays this error:
Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. So, I used ssh-keygen to regenerate the host keys, but it still displays this message. I've even checked in the specified directory, and the files ssh_host_rsa_key and ssh_host_dsa_key are both there. |
what are the rights on them and the /etc/ssh directory? You'll probably get something useful if you also start the sshd process manually with a debugging "-d 3" on the command line.
|
Alright, so I actually just assumed that your answer regarding the permissions was correct, and it was! I did chmod 775 to both files... but then sshd reminded me that being this open with a private key file is a bad thing to do... What should the permissions be?
|
Most common rights are 600, root:root of course.
|
Everything with the keys and permissions worked! Thanks for your help!
|
All times are GMT -5. The time now is 07:56 PM. |