Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenSSH
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Fri Nov 28, 2003 7:41 pm    Post subject: OpenSSH Reply with quote

Hmm, i emerged openssh and it installed without problems but when i try to run the server it says this:
Code:

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.


I have run the keygen and changed the config file but it still doesnt work :( does anyone know how to fix this :?:
Back to top
View user's profile Send private message
malloc
l33t
l33t


Joined: 19 Sep 2003
Posts: 762

PostPosted: Fri Nov 28, 2003 8:10 pm    Post subject: Reply with quote

Try running /etc/init.d/ssh start
The first time you run it it will create all the necessary files for you to start the sshd later
Back to top
View user's profile Send private message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Fri Nov 28, 2003 8:31 pm    Post subject: Reply with quote

it says the same :cry:
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Fri Nov 28, 2003 8:55 pm    Post subject: Reply with quote

Do you have the correct permissions on the keys? From the Files section of man sshd:
Code:
     /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key,
             /etc/ssh/ssh_host_rsa_key
             These three files contain the private parts of the host keys.
             These files should only be owned by root, readable only by root,
             and not accessible to others.  Note that sshd does not start if
             this file is group/world-accessible.
                                                                               
     /etc/ssh/ssh_host_key.pub, /etc/ssh/ssh_host_dsa_key.pub,
             /etc/ssh/ssh_host_rsa_key.pub
             These three files contain the public parts of the host keys.
             These files should be world-readable but writable only by root.
             Their contents should match the respective private parts.  These
             files are not really used for anything; they are provided for the
             convenience of the user so their contents can be copied to known
             hosts files.  These files are created using ssh-keygen(1).

_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Sat Nov 29, 2003 12:59 am    Post subject: Reply with quote

yeah
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Sat Nov 29, 2003 8:41 am    Post subject: Reply with quote

Did you run ssh-keygen yourself or did you do as malloc suggested? Try to delete/move/backup your keys and run
Code:
/etc/init.d/sshd start

as root. The script will, as malloc said, create the keys for you. Show us exactly what you do so we can see if there's anything mistyped.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum