Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2001 15:58:26 +0000
From:      Peter McGarvey <pmcgarvey@vianetworks.co.uk>
To:        Johann Sharizan <johann@broadpark.no>, freebsd-questions@freebsd.org
Subject:   Re: OpenSSH -- Make up your mind!
Message-ID:  <E16JzOz-0005sz-00@pooh.noc.u-net.net>
In-Reply-To: <20011228163121.4df70a62.johann@broadpark.no>
References:  <20011228163121.4df70a62.johann@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
> OpenSSH did generate all the nessecary keys and config files upon
> installation;

Errm, no it didn't.  Hence the error message:

	Could not load host key: /etc/ssh/ssh_host_rsa_key

I've recently upgrated to OpenSSH_3.0.2p1 on about 20 boxen, and had the 
same problem.  From /usr/local/etc/sshd_config:

	# HostKey for protocol version 1
	HostKey /usr/local/etc/ssh_host_key
	# HostKeys for protocol version 2
	HostKey /usr/local/etc/ssh_host_rsa_key
	HostKey /usr/local/etc/ssh_host_dsa_key

The file /usr/local/etc/ssh_host_key is an RSA key, but it's not the 
correct format for SSH2.  So do this:

	ssh-keygen -t rsa -N "" -f /usr/local/etc/ssh_host_rsa_key

Or comment out the ssh_host_rsa_key entry.


-- 
TTFN, FNORD

Peter McGarvey
System Administrator
Network Operations, VIA Networks UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16JzOz-0005sz-00>