Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert ssh key generated on mac to ppk

I have a private ssh key which i used on mac to gain access to my company´s repository.

Currently I´m working under Windows environment and want to access these repo´s with Tortoise HG.

Unfortunaly i seem to need a .ppk, PuttyPrivateKey to let that happen.

Is there a way to convert my existing id_rsa file to a ppk file?

Or alternatively can i use my existing ssh key file under windows environment to access a hg repo?

Thanks in advance!

like image 343
Ostkontentitan Avatar asked Sep 12 '12 08:09

Ostkontentitan


1 Answers

I can't say I'm 100% familiar with this topic, however, have you tried using PuTTYgen to Import the id_rsa file?

Using the ‘Import’ command from the ‘Conversions’ menu, PuTTYgen can load SSH-2 private keys in OpenSSH's format and ssh.com's format. Once you have loaded one of these key types, you can then save it back out as a PuTTY-format key (*.PPK) so that you can use it with the PuTTY suite. The passphrase will be unchanged by this process (unless you deliberately change it). [source]

You can download PuTTYgen on the usual PuTTY download page:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

like image 72
Spikes Avatar answered Oct 18 '22 18:10

Spikes