Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2000 21:11:29 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Ron Smith <ronnetron@hotmail.com>
Cc:        freebsd-newbies@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Apache and ssh
Message-ID:  <20000703211129.B48373@strontium.scientia.demon.co.uk>
In-Reply-To: <20000703170922.44880.qmail@hotmail.com>
References:  <20000703170922.44880.qmail@hotmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Ron Smith wrote:

> Also, I would like to use 'ssh' on this machine, but when I try to run the 
> deamon, '/usr/sbin/sshd', I get the following error message:
> 
> error: Could not load host key: /etc/ssh/ssh_host_key: No such file or 
> directory

Put sshd_enable=YES in /etc/rc.conf and the host key will be created on
your next reboot (and sshd will be automatically started of course).
Or you can do it before then (you don't reboot for a little thing like
this), the appropriate commands are in /etc/rc.network:

/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: I38mCv09YGRuPQseQbqhEEfs9iVk9edH

iQCVAwUBOWDzcCsPVtiZOS99AQFwlQP/Um1FGYZaINegXvAHc47SIk5hfWJWsNQy
NtBeIsV57RsLiesoWPCI+1WFW0zjS1cjxrhXpnPK+23Finje24+ufFG2ILkcmKkf
7C3LJqBNdx2JCCdUay4JIlLiJd4QEd50+mq637hIBM093f1ZcR6oqxc8L59fII01
bGuQ2PIJjAM=
=ttrB
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000703211129.B48373>