LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sshd failing to start (https://www.linuxquestions.org/questions/linux-software-2/sshd-failing-to-start-728375/)

KenjiKinya 05-25-2009 11:04 AM

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.

acid_kewpie 05-25-2009 12:08 PM

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.

KenjiKinya 05-25-2009 12:51 PM

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?

acid_kewpie 05-25-2009 02:58 PM

Most common rights are 600, root:root of course.

KenjiKinya 05-25-2009 06:29 PM

Everything with the keys and permissions worked! Thanks for your help!


All times are GMT -5. The time now is 07:56 PM.