From owner-freebsd-questions Fri Dec 28 7:58:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pooh.noc.u-net.net (pooh.noc.u-net.net [195.102.252.112]) by hub.freebsd.org (Postfix) with ESMTP id 6234137B422 for ; Fri, 28 Dec 2001 07:58:35 -0800 (PST) Received: from pooh.noc.u-net.net ([195.102.252.112] helo=there) by pooh.noc.u-net.net with smtp (Exim 3.22 #1) id 16JzOz-0005sz-00; Fri, 28 Dec 2001 15:58:33 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Peter McGarvey Reply-To: pmcgarvey@vianetworks.co.uk Organization: VIA NETdotWORKS To: Johann Sharizan , freebsd-questions@freebsd.org Subject: Re: OpenSSH -- Make up your mind! Date: Fri, 28 Dec 2001 15:58:26 +0000 X-Mailer: KMail [version 1.3] References: <20011228163121.4df70a62.johann@broadpark.no> In-Reply-To: <20011228163121.4df70a62.johann@broadpark.no> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-EXIM-FILTER: PASS-s02 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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