Unable to use key file (PuTTY SSH-2 private key)

Unable to use key file (PuTTY SSH-2 private key)

Post by miten.meht » Fri, 06 Jun 2008 19:04:05


Hello,

I have PuttyGen 0.60, Putty 0.60 on XP and
OpenSSH_3.8.1p1 OpenSSL 0.9.7m 23 Feb 2007 on Linux pa936c1n5
2.4.21-32.0.1.EL.msdwhugemem #1 SMP Mon Dec 5 21:32:44 EST 2005 i686

I have tried generating rsa/dsa keys on Unix (on host called papa) and
then importing private key onto XP and saving it in PPK format and
saving the public key in ~/.ssh/authorized_keys.

I have also tried generating rsa/dsa keys using PuttyGen and then
saving OpenSSH public key onto ~/.ssh/authorized_keys.

As I try to access using putty XP using any ssh 1 or 2 version I get
following output error:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2008.06.05 15:26:44
=~=~=~=~=~=~=~=~=~=~=~=
Sent username "mitenm"
Unable to use key file "C:\downloads\id_rsa.ppk" (PuTTY SSH-2 private
key)
mitenm@papa's password:

From the generated rsa keys I placed the public key .ssh/id_rsa.pub on
another unix machine (mama as .ssh/authorized_keys) with private key
as .ssh/id_rsa (on papa) and then papa to mama ssh works fine without
password requirement.

Its the putty xp to unix that unable to talk well. Please note that
papa is using AFS.

Thanks.

Miten.
 
 
 

Unable to use key file (PuTTY SSH-2 private key)

Post by Simon Tath » Fri, 06 Jun 2008 19:17:41


That's because PuTTY is using SSH-1 to talk to the server, and SSH-1
and SSH-2 keys are not interchangeable. If you run PuTTYgen again
but this time tell it to generate an SSH-1 key, it all ought to work
better.

(But if you can possibly arrange for the server to be upgraded so
that it supports SSH-2, that would be a better solution.)
--
Simon Tatham "_shin_, n. An ingenious device for
< XXXX@XXXXX.COM > finding tables and chairs in the dark."