how to copy a private ssh key from windows to linux

Asked by A117

1. I generated ssh key pair in windows using putty and created code project on launchpad.
2. I enter virtual machine Ubuntu and copied the private ppk file to ~/.ssh/id_rsa then tried to branch my project.
3. when prompted Enter passphrase for key, I entered my key but it is refused, still saying Permission denied (publickey).
Are there any differences between the key file I generated on windows and the one I should be using under Ubuntu? Or did I miss any steps please?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
A117
Solved:
Last query:
Last reply:
Revision history for this message
Vincent Ladeuil (vila) said :
#1

Did you read https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair?action=show&redirect=CreatingAnSSHKeyPair ?

I don't think openSSH recognizes the ppk format used by putty (but I'm not using windows and I may be wrong).

Revision history for this message
Vincent Ladeuil (vila) said :
#2

That is, there is a way to get the keys in the format expected by launchpad from putty (hence my url above) but I think it's not by using the ppk file.

Revision history for this message
A117 (bon-ami) said :
#3

in puttygen, I can Convert its key file to OpenSSH file, which is working now.