THANKS TO Markus Friedl. >Could not load host key: /usr/local/etc/ssh_host_key >debug1: PEM_read_PrivateKey failed
I just entered NO passphrase (as Markus said) when generating the three keys. Then started SSHD!!! works fine. Best wishes, Warren -----Original Message----- From: Markus Friedl [mailto:[EMAIL PROTECTED]] Sent: 10 October 2001 13:13 To: Warren Daly Subject: Re: PEM_read_PrivateKey failed are you sure that generate keys without passphrases? On Wed, Oct 10, 2001 at 01:03:08PM +0100, Warren Daly wrote: > Hello, > I have installed OpenSSH_2.9p2 on a SPARC 20 running Solaris 2.6. > I have generated 3 keys > > ssh-keygen -t dsa -f /etc/local/etc/ssh_host_dsa_key > ssh-keygen -f /etc/local/etc/ssh_host_key > ssh-keygen -t rsa -f /etc/local/etc/ssh_host_rsa_key > > here is a snip of my sshd_config > > Port 22 > #Protocol 2,1 > #ListenAddress 0.0.0.0 > #ListenAddress :: > HostKey /usr/local/etc/ssh_host_key > HostKey /usr/local/etc/ssh_host_rsa_key > HostKey /usr/local/etc/ssh_host_dsa_key > ServerKeyBits 768 > LoginGraceTime 600 > KeyRegenerationInterval 3600 > PermitRootLogin yes > > this is the error I get when I attempt to start the daemon: > > # ./sshd -d > debug1: Seeded RNG with 28 bytes from programs > debug1: Seeded RNG with 3 bytes from system calls > debug1: sshd version OpenSSH_2.9p2 > Could not load host key: /usr/local/etc/ssh_host_key > debug1: PEM_read_PrivateKey failed > debug1: read PEM private key done: type <unknown> > Could not load host key: /usr/local/etc/ssh_host_rsa_key > debug1: PEM_read_PrivateKey failed > debug1: read PEM private key done: type <unknown> > Could not load host key: /usr/local/etc/ssh_host_dsa_key > Disabling protocol version 1. Could not load host key > Disabling protocol version 2. Could not load host key > sshd: no hostkeys available -- exiting. > debug1: writing PRNG seed to file //.ssh/prng_seed > > I have searched for PEM details with Google but can't seem to find any > answers in relation to this error. ANY help would be greatly appreciated. > > Warren Daly > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]