[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh- cannot load host key



* Jacob Stowell (js8319@csc.albany.edu) spake thusly:
> Hi all,
> 
> I am fairly new to using SSH, and I was wondering if anyone may be able
> to help me with a problem.
> 
> satchel[/home/jake]% /etc/init.d/ssh start
> Starting OpenBSD Secure Shell server: sshdDisabling protocol version 2.
> Could not load host key
...
> HostKey /etc/ssh/ssh_host_key
...
> # Uncomment if you don't trust ~/.ssh/known_hosts for
> RhostsRSAAuthentication
You want "yes" or "no" here ^^^^^
...
> RhostsAuthentication no
...
> RSAAuthentication yes

Ok, check that you have /etc/ssh/ssh_host_dsa_key and 
/etc/ssh/ssh_host_rsa_key (and corresp. .pub's). You want
RSA key for RSAAuthentication. If not, generate them with
ssh-keygen -t [dsa,rsa] -f /etc/ssh/ssh_host_[rsa,dsa]_key -N ""
as root and add 
HostKey /etc/ssh/ssh_host_[rsa,dsa]_key 
entries to the config file (if the files are there, just add 
conffile entries).

The error message says it's disabling SSH-2 because it cannot find
SSH-2 RSA and/or DSA keys (/etc/ssh/ssh_host_key is for SSH-1). It 
looks like your client is trying to connect with SSH-2 and is not
falling back to SSH-1 when that fails. You can try telling to use 
SSH-1 (ssh -1 myserver) to check if this is the case.

Dima
-- 
E-mail dmaziuk at bmrb dot wisc dot edu (@work) or at crosswinds dot net (@home)
http://www.bmrb.wisc.edu/descript/gpgkey.dmaziuk.ascii -- GnuPG 1.0.4 public key
The wombat is a mixture of chalk and clay used for respiration.       -- MegaHal



Reply to: