[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: REPOST: unable to load ssh2 protocol



On Mon, 3 Dec 2001, Kurt Lieber wrote:

> Thanks for the response.

No problems - I got the error myself when I upgraded, and it annoyed me 
considerably because I have been using SSH V2 for a while to get back to 
my server in Australia from the US.

>  I tried that, but it's still not working.  However, 
> now I get a different error message when I execute /usr/sbin/sshd -d -d:
> 
> debug1: Seeding random number generator
> debug1: sshd version OpenSSH_2.9p2
> debug1: private host key: #0 type 0 RSA1
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type <unknown>
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type <unknown>
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 2. Could not load host key

Okay, that looks like there is a problem with permissions or some such on 
the files... I'll check my file permissions...

Okay, here is the permission list from my /etc/ssh directory
cass@athens:~$ ls -al /etc/ssh
total 68
drwxr-xr-x    2 root     root         4096 Nov 29 06:48 .
drwxr-xr-x   61 root     root         4096 Dec  4 01:05 ..
-rw-r--r--    1 root     root        26287 Sep 14 02:36 primes
-rw-r--r--    1 root     root         1192 Nov 29 06:48 ssh_config
-rw-------    1 root     root          672 Oct 11 15:40 ssh_host_dsa_key
-rw-r--r--    1 root     root          601 Oct 11 15:40 
ssh_host_dsa_key.pub
-rw-------    1 root     root          526 Oct 11 15:40 ssh_host_key
-rw-r--r--    1 root     root          330 Sep 26 17:36 ssh_host_key.pub
-rw-------    1 root     root          887 Oct 11 15:39 ssh_host_rsa_key
-rw-r--r--    1 root     root          221 Oct 11 15:39 
ssh_host_rsa_key.pub
-rw-r--r--    1 root     root         1924 Nov 29 06:46 sshd_config

> Now I'm wondering if I've generated the rsa and/or dsa key pairs incorrectly. 
>  The syntax I used is:
> 
> ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key  and
> ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key
> 
> And I've verified that /etc/ssh/sshd_config contains:
> 
> HostKey /etc/ssh/ssh_host_key
> HostKey /etc/ssh/ssh_host_rsa_key
> HostKey /etc/ssh/ssh_host_dsa_key
> 
> I've also ensured that root has rw permissions on the private key.  (the 
> public key is world-readable)

Okay, the command I used to generate the private keys was :-
ssh-keygen -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key

If that doesn't help, can you message me directly with a copy of your 
sshd_config file?  I can diff it to mine and see if there is anything else 
that might be causing the problem...

> Any other ideas?

Just the ones above at the moment.

Regards,
	Cassandra



Reply to: