Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2000 14:48:38 +0200 (CEST)
From:      Paul Herman <pherman@frenchfries.net>
To:        Bennett Hui <bhui@mail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: can't start sshd
Message-ID:  <Pine.BSF.4.21.0008081442540.310-100000@bagabeedaboo.security.at12.de>
In-Reply-To: <NDBBKCNFGLGFDJGFGEECOEJOCCAA.bhui@mail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008081442540.310-100000>