public-openssh and private keys from Unix puttygen seem to mismatch
- From: "Wences" <wgrillo@xxxxxxxxx>
- Date: 6 Jul 2006 13:36:46 -0700
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
.
- Follow-Ups:
- Prev by Date: Re: automatically restoring putty ssh connections
- Next by Date: Re: public-openssh and private keys from Unix puttygen seem to mismatch
- Previous by thread: automatically restoring putty ssh connections
- Next by thread: Re: public-openssh and private keys from Unix puttygen seem to mismatch
- Index(es):
Relevant Pages
|
|