From owner-freebsd-questions Tue Aug 8 5:48:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id E9B8337B8F1 for ; Tue, 8 Aug 2000 05:48:51 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-194-8-209-243.netcologne.de [194.8.209.243]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id OAA22572; Tue, 8 Aug 2000 14:48:50 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e78CmcB65332; Tue, 8 Aug 2000 14:48:38 +0200 (CEST) Date: Tue, 8 Aug 2000 14:48:38 +0200 (CEST) From: Paul Herman To: Bennett Hui Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't start sshd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 Aug 2000, Bennett Hui wrote: > When I try to run sshd, I get the following errors: > > error: Could not load host key: /etc/ssh/ssh_host_key: Bad file descriptor > Disabling protocol version 1 > error: Could not load DSA host key: /etc/ssh/ssh_host_dsa_key > Disabling protocol version 2 > sshd: no hostkeys available -- exiting. > sshd: no hostkeys available -- exiting. > > > I thought I was doing something wrong with generating the keys, so I > installed the latest port of SSH from the FreeBSD website (OpenSSH 2.1.1) (BTW, you shouldn't have to do this, OpenSSH is part of the 4.1 base system. You may now have two SSHs on your system, which might also cause problems...) > and I saw the install of that create the keys using the commands: > > ssh-keygen -N "" -f /etc/ssh/ssh_host_key > ssh-keygen -d -N "" -f /etc/ssh/ssh_host_dsa_key What do these files look like? The ".pub" keys should be text files, and the first line of the private RSA key binary file should be: SSH PRIVATE KEY FILE FORMAT 1.1 ...and the DSA private key should be a text file with: -----BEGIN DSA PRIVATE KEY----- If you can read these files, then sshd *should* be able to as well. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message