Error in starting SSH

Rob stopspam at users.sourceforge.net
Fri Jun 11 06:02:39 PDT 2004


Bilal Ahmed wrote:
> 
>    I have been facing an error on running sshd:
> 
>    /usr/sbin/sshd
>    Could not load host key: /etc/ssh/ssh_host_key
>    Could not load host key: /etc/ssh/ssh_host_dsa_key

Are these two files not there?

In 5.X, you should start such daemons from /etc/rc.d :

# cd /etc/rc.d
# ./sshd start


It will generate the host key files, if not there; and then
start the daemon.

Rob.





More information about the freebsd-questions mailing list