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



Hi, it's me again!

I figured it out! So in case anyone else stumbles on the same rock,
this is the problem:

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

The second call to puttygen opens $file_name.ppk, but as there's also
"-t" and "-b" options, puttygen understands it should generate the key
anew. So you get non-matching keys.

The fixed lines:

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

Works like a charm!

Cheers:

Wences

.