Subject: Re: How to set up sshd_config to allow connection via dydns?
To: Alasdair Reed <alasdair@iprimus.com.au>
From: Martin Husemann <martin@duskware.de>
List: netbsd-users
Date: 06/06/2007 15:02:29
On Wed, Jun 06, 2007 at 10:55:08PM +1000, Alasdair Reed wrote:
> Could not load host key: /etc/ssh/ssh_host_key
> 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 host key
> sshd: no hostkeys available -- exiting.

Well, fix this and it will have a chance to work ;-)

How are you starting sshd normaly? If via rc.conf/rc.d the /etc/rc.d/sshd
script should check if /etc/ssh/ssh_host_key exists and if not create one
for you. (And /etc/ssh/ssh_host_rsa_key as well as /etc/ssh/ssh_host_dsa_key,
which are the ones you realy want to use)

Martin