On Thu, 24 Feb 2005, Nick wrote:

> Okay. I suspect I've narrowed down the problem. As per someone's 
> suggestion I typed /etc/init.d/sshd start
>
> The result was:
>
> "Starting ssh daemon
> Could not load host keys
> Could not load host keys /etc/ssh/ssh_host_rsa_key
> Could not load host keys /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 hostkeys available - exiting"
>
> Does this mean anything?

Yes.  run this command:

man sshd

Look for the section that reads something like this:

      /etc/ssh2/hostkey
           Contains the private part of the host key.   This  file
           is  normally  created  automatically by "make install",
           but can also be created manually using  ssh-keygen2(1).
           This  file  should only be owned by root, readable only
           by root, and not accessible to others.

      /etc/ssh2/hostkey.pub
           Contains the public part of the host key.  This file is
           normally  created  automatically by "make install", but
           can also be created  manually.   This  file  should  be
           world-readable but writable only by root.  Its contents
           should match the private part.


You may have a different sshd than I have, but there will be some sort of 
keygen program.  If that program is called "ssh-keygen2" you would next 
type this command:

man ssh-keygen2

and follow the instructions.  I'm no expert on this stuff, but someone on 
this list surely knows exactly what you need to do.

Mike