Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem running sshd after successful instalation

Status
Not open for further replies.

Guest
Hi Gurus, I am installed openssh on RS6000 running AIX4.3.3 with ML 8
I am having problems running the server and the following errors when running sshd
Couldn't load host key: /usr/local/etc
Couldn't load host key: /ssh-host_key
Couldn't load host key: /ssh-host_rsa_key
Couldn't load host key: /ssh-host_dsa_key
sshd: no host keys available ---
exiting


the client side works ie I can connect to other machines but cannt connect to as server.


Your help would be appreciated




 
You should initialize sshd first.

If you have it, submit /etc/rc.ssh whith the init option to generate your host keys


Else


submit thoses commands to generate manualy the keys:

ssh-keygen -t dsa -f $etcdir/ssh_host_key -N ''
ssh-keygen -d -f $etcdir/ssh_host_dsa_key -N ''
ssh-keygen -t dsa -f $etcdir/ssh_host_dsa_key -N ''
ssh-keygen -t rsa -f $etcdir/ssh_host_rsa_key -N ''

Replace $etcdir with your own ssh etc directory, generaly /etc/ssh


 
you should generate theses keys in location where you sshd.conf points to:

probably your sshd_config is in location /usr/local/etc/sshd.conf

if the keys should be in /usr/local/etc (it is mentioned in the sshd.conf), then run the command if keys are really missed:

ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ''
ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ''
ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ''


as I remeber the file names ssh_host_dsa_key, ssh_host_rsa_key and ssh_host_key are default host key names.

probably you modified your config and it looks for /ssh-host_key, /ssh-host_rsa_key, /ssh-host_dsa_key

So, probably you have in /usr/local/etc/sshd_config

this:
HostKey /ssh-host_key
# HostKeys for protocol version 2
HostKey /ssh-host_rsa_key
HostKey /ssh-host_dsa_key



instead of default

#HostKey /usr/local/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /usr/local/etc/ssh_host_rsa_key
#HostKey /usr/local/etc/ssh_host_dsa_key


r, m.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top