Setting up an SSH server - how do I get keys?

notfred

Lifer
Feb 12, 2001
38,241
4
0
getting this message:

Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


What do I use for host keys?
 

geoff2k

Golden Member
Sep 2, 2000
1,929
0
76
Is the issue that those files don't exist, or that they can't be accessed by the user under whom sshd is running?
 

AT

Senior member
Oct 9, 1999
388
0
0
Originally posted by: notfred
getting this message:

Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


What do I use for host keys?


You create them. Ssh-keygen is the magic word.
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
The sshd startscript for many OS's will do this automatically for you if you just run it with a start argument.