Mick wrote:
> On Monday 01 December 2008, Mick wrote:
>> On Monday 01 December 2008, Eric Martin wrote:
>>> What did you use to generate the key?  Also, what does the client /
>>> server say for the key fail?
>> I used something like: ssh-keygen -v -t rsa -b 2048.  I have even generated
>> a second key pair and tried that too, with no success.
>>
>> The client messages are in the first message I sent to the list - basically
>> showing this:
>> ====================================================
>> debug1: Connection established.
>> debug3: timeout: 14828 ms remain after connect
>> debug3: Not a RSA1 key file /home/michael/.ssh/.ssh/id_rsa.
>> debug2: key_type_from_name: unknown key type '-----BEGIN'
>> debug3: key_read: missing keytype
>> debug2: key_type_from_name: unknown key type 'Proc-Type:'
>> debug3: key_read: missing keytype
>> debug2: key_type_from_name: unknown key type 'DEK-Info:'
>> debug3: key_read: missing keytype
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> . . .
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug3: key_read: missing whitespace
>> debug2: key_type_from_name: unknown key type '-----END'
>> debug3: key_read: missing keytype
>> ====================================================
>>
>> The server messages are shown here:
>>
>> http://pastebin.centos.org/22705
> 
> I have now also tried to generate a key pair on the server, move the private 
> key over to the client and then try to login - still no result!  :-(
> 
> It has to be some sort of incompatibility between the two versions of 
> OpenSSH.  
> Don't know what else to assume with this problem.

It definitely looks like the server doesn't like your private key.  Did
you remember to update(read: add) the public key on the server?  Also, I
generated an ssh key using the exact same syntax that you used and my
key looks different that what I can glean about your key.  The ---BEGIN,
Proc-Type and DEK-Info lines are in an old dsa key I created, while the
rsa key just says ------------BEGIN RSA PRIVATE KEY--------- followed by
key data.  The DSA key says the same, except DSA as opposed to RSA.

From the logs it looks like w formatting issue, given the whitespace
errors.  have you tried loading your key into an agent?  try:

ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa

This will unlock your key and let that session authenticate for you.  It
also has the nice side effect of checking if your private key is a real
private key.  The only time I have a problem w/pub/private keys is when
I create them on a windows box and try to export it to ssh.  The other
way around always works for me.

HTH

-- 
Eric Martin
Key fingerprint = D1C4 086E DBB5 C18E 6FDA  B215 6A25 7174 A941 3B9F

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to