Hello, Setting up sshd for the first time I generated password protected RSA and DSA host keys OK. When running sshd get the following error 'debug1: PEM_read_bio_DSAPrivateKey failed'. Any help would me much appreciated. The following is cut from my console. <- bash-2.03# ./sshd -d debug1: sshd version OpenSSH_2.3.0p1 debug1: Seeded RNG with 33 bytes from programs debug1: Seeded RNG with 3 bytes from system calls debug1: Bad key file /usr/local/etc/ssh_host_key. error: Could not load host key: /usr/local/etc/ssh_host_key: Bad file number Disabling protocol version 1 debug1: PEM_read_bio_DSAPrivateKey failed debug1: read DSA private key done error: Could not load DSA host key: /usr/local/etc/ssh_host_dsa_key Disabling protocol version 2 sshd: no hostkeys available -- exiting. sshd: no hostkeys available -- exiting. debug1: writing PRNG seed to file //.ssh/prng_seed bash-2.03# -> I generated the host DSA key with, <- bash-2.03# ./ssh-keygen -d Generating DSA parameter and key. ^C bash-2.03# ./ssh-keygen -d -f /usr/local/etc/ssh_host_dsa_key Generating DSA parameter and key. /usr/local/etc/ssh_host_dsa_key already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /usr/local/etc/ssh_host_dsa_key. Your public key has been saved in /usr/local/etc/ssh_host_dsa_key.pub. The key fingerprint is: f7:25:64:15:87:1c:dc:42:b7:5b:cd:35:96:91:21:fd root@demo5 bash-2.03# -> Following is a snip of /usr/local/etc/sshd_config <- # This is ssh server systemwide configuration file. Port 22 #Protocol 2,1 ListenAddress 0.0.0.0 #ListenAddress :: HostKey /usr/local/etc/ssh_host_key ServerKeyBits 768 -> Following is a file listing with permissions, /usr/local/etc # ls -alF total 22 drwxr-xr-x 2 root root 512 Apr 3 12:40 ./ drwxr-xr-x 7 root other 512 Feb 20 20:22 ../ -rw-r--r-- 1 root root 887 Feb 20 20:46 ssh_config -rw------- 1 root other 736 Apr 3 12:40 ssh_host_dsa_key -rw-r--r-- 1 root other 600 Apr 3 12:40 ssh_host_dsa_key.pub -rw------- 1 root other 744 Apr 3 12:39 ssh_host_key -rw-r--r-- 1 root other 600 Apr 3 12:39 ssh_host_key.pub -rw-r--r-- 1 root root 1620 Dec 10 08:31 ssh_prng_cmds -rw-r--r-- 1 root root 1292 Apr 3 12:49 sshd_config # # file * ssh_config: English text ssh_host_dsa_key: ascii text ssh_host_dsa_key.pub: ascii text ssh_host_key: ascii text ssh_host_key.pub: ascii text ssh_prng_cmds: ascii text sshd_config: ascii text #
