public-openssh and private keys from Unix puttygen seem to mismatch



Hi, everyone.

I'm trying to create a private key in PuTTY format and it's
corresponding private key in OpenSSH format, to be able to log into a
Linux/OpenSSH server from a Windows box with PuTTY.

I'm trying to generate the keys on the Linux box from within a bash
script with:

puttygen -t rsa -b 1024 -O private -o $file_name.ppk -q $file_name.pub
-n -q
puttygen $file_name.ppk -t rsa -b 1024 -O public-openssh -o
$file_name.pub -q

Then I put the contents of $file_name.pub in $user/.ssh/authorized_keys
And get the .ppk file to the Windows box. But I get a "Server refused
our key" message.

I tried this: I used Windows version of puttygen to open the ppk file
and compared the "Public key for pasting into OpenSSH authorized_keys
file" with the .pub file. They don't match!!!
I pasted the one created by Windows puttygen into authorized_keys, and
it worked.

Using Windows puttygen is not an option. I need to generate the keys on
the server. What should I do? Where's the mistake?

Thanks:

Wences

.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • pqv¼Ò¹ÚÇÑ ²Þ@mBGRx
    ... O-009¹Ù¢Ã MS Windows 2000 Datacenter Server -2¸¸¿ø ... Main Application (Borland C++ Builder 6 Enterprise Edition) ... Y-166¢Ã Sex Starved Sluts 1 (Divx) ...
    (FreeBSD-Security)