Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh hostkey problem
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
enchong
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2004
Posts: 97

PostPosted: Tue Dec 21, 2004 3:49 pm    Post subject: ssh hostkey problem Reply with quote

hi,

when i run sshd at the command line i get an error saying

could not load host key: /etc/ssh/ssh_host_key
could not load host key: /etc/ssh/ssh_host_dsa_key
disabling protocol version 1. could not load host key
disabling protocol version 2. could not load host key
sshd: no host keys available. exiting

how do i make a host key?

i did a ssh-keygen but it was a user key. what should i do to start sshd?

thanks!

regards,
enchong
_________________
it's all in the mind...
Back to top
View user's profile Send private message
gymer
n00b
n00b


Joined: 10 Jun 2004
Posts: 28
Location: Denmark

PostPosted: Tue Dec 21, 2004 3:51 pm    Post subject: Reply with quote

as root do:

Code:

/usr/bin/ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N ''
/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ''
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''

_________________
/gymer
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