SSHD Could not load host key: /etc/ssh/ssh_host_rsa_key

HI,

I am running Solaris 10 on an Ultra-60, trying to get sshd working.

I have run ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

and ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key.

It does put the key and key.pub in /etc/ssh but upon running

/usr/lib/ssh/sshd, I get the error:

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 1. Could not load host key

Disabling protocol version 2. Could not load hostkey or

GSS-API Mechanisms

sshd: no hostkeys available -- exiting.

The keys DO exist in /etc/ssh! How do I get sshd to see them?

Thanks for any help!!!

-Sean

[740 byte] By [] at [2007-11-25 22:52:00]
# 1
Remove the /etc/ssh/ssh_host_* files, and try to create the sshd keys with:/lib/svc/method/sshd -c
at 2007-7-5 17:07:28 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Thank you!
joshone at 2007-7-5 17:07:28 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

I had the same problem as Sean had described. I tried to run /lib/svc/method/ssh -c (no keys to be removed) and got the same error:

bash-2.05b# /lib/svc/method/sshd start

Creating new rsa public/private host key pair

Creating new dsa public/private host key pair

bash-2.05b# 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 hostkey or GSS-API mechanisms

sshd: no hostkeys available -- exiting.

Any other thoughts? Thanks in advance for any help!

agnieszka at 2007-7-5 17:07:28 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...