LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2009, 11:04 AM   #1
KenjiKinya
LQ Newbie
 
Registered: Apr 2009
Location: Japan & South Korea
Distribution: Fedora
Posts: 19

Rep: Reputation: 0
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.
 
Old 05-25-2009, 12:08 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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.
 
Old 05-25-2009, 12:51 PM   #3
KenjiKinya
LQ Newbie
 
Registered: Apr 2009
Location: Japan & South Korea
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 05-25-2009, 02:58 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Most common rights are 600, root:root of course.
 
Old 05-25-2009, 06:29 PM   #5
KenjiKinya
LQ Newbie
 
Registered: Apr 2009
Location: Japan & South Korea
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
Everything with the keys and permissions worked! Thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd won't start sysspy Linux - Server 2 12-21-2008 12:01 PM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
sshd doesn't start wrich Slackware 4 09-26-2006 03:45 PM
SShD Silently failing -- Need directions, output logs Caidence Linux - Networking 2 01-24-2004 08:38 PM
couldn't start SSHD jonnyb Linux - Networking 14 02-16-2003 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration