Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-09-2006, 11:23 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
private key conversion (putty to openssh)

I originally generated my public/private key pair with the putty client and
converted to putty .ppk format with puttygen. I no longer have the orginal id_rsa key.
I'm attempting to convert the putty format secret key back to openssh format.

So I went ahead and saved my putty private key in OpenSSH format using puttygen.
I created a .ssh/id_rsa file on my home Linux machine from which I am connecting, pasted
in the exported key, 'chmod 600' and then tried to connect to the host running sshd
with port forwarding enabled as follows:

$ssh -2 -l <username> -L 888: x.x.x.x

I get the legal banner from x.x.x.x and then I'm prompted for my passphrase
as normal. However it won't accept my passphrase even though I know it's
correct. Has the export in puttygen stripped the passphrase do you
think? Not sure.

I've tried 'ssh-keygen -p' on the client to force a passphrase change but
again it doesn't like the old passphrase I give it when prompted. It seems
from Google that converting keys from one format to another is not
really recommended. Anyone have any clue? My only other option to re-gen a new
set of keys for my home machine to ssh to this server.

Old 10-11-2006, 08:01 AM   #2
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
My only other option to re-gen a new
set of keys for my home machine to ssh to this server.
This is actually a better idea, even from security point of view.
If you still need just one key-pair, can you export your key in puttegen with no password and then set a password using openssh?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Breaking Firewalls with OpenSSH and Putty mchirico Member Success Stories 0 03-27-2005 03:03 PM
openssh and putty configuration help johnson407 Mandriva 2 12-15-2004 11:11 PM
public/private key authentication with PuTTY NetAX Linux - Security 5 10-27-2004 06:00 PM
putty and openssh issue Robin01 Linux - Newbie 6 12-02-2003 06:32 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration