From owner-freebsd-questions Sat Aug 5 22:54:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.rdc2.bc.home.com (mail2.rdc2.bc.home.com [24.2.10.85]) by hub.freebsd.org (Postfix) with ESMTP id 803EE37B998 for ; Sat, 5 Aug 2000 22:54:35 -0700 (PDT) (envelope-from bhui@mail.com) Received: from cr816685a ([24.113.95.72]) by mail2.rdc2.bc.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20000806055435.LIVK3301.mail2.rdc2.bc.home.com@cr816685a> for ; Sat, 5 Aug 2000 22:54:35 -0700 From: "Bennett Hui" To: Subject: can't start sshd Date: Sat, 5 Aug 2000 22:54:17 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just installed FreeBSD 4.1 last night on an Intel Processor. I loaded in the OpenSSH port that is contained in the FreeBSD CD. I've created an RSA host key and a DSA host key called ssh_host_key and ssh_host_dsa_key, respectively in the /etc/ssh/ directory. 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) 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 After the install was complete, i tried running sshd again, but it produced the exact same errors as I mentioned above. What's going wrong? Bennett Hui bhui@mail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message