View previous topic :: View next topic |
Author |
Message |
enchong Tux's lil' helper
Joined: 31 Oct 2004 Posts: 97
|
Posted: Tue Dec 21, 2004 3:49 pm Post subject: ssh hostkey problem |
|
|
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 |
|
|
gymer n00b
Joined: 10 Jun 2004 Posts: 28 Location: Denmark
|
Posted: Tue Dec 21, 2004 3:51 pm Post subject: |
|
|
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 |
|
|
|