Wednesday, April 4, 2012

TortoiseGit and ssh keys

If you use TortoiseGit to access via ssh, then follow these steps to setup the 'putty key':
- Start putty key generator: C:\Program Files\TortoiseGit\bin\puttygen.exe
- Choose Load (Load an existing private key file)
- Navigate to C:\Users\\[your user name\]\.ssh
- In 'filnavn' choose id_rsa (NB! *not* id_rsa.pub)
- Choose 'Åbn' or 'Open'
- You should get a message box like 'Successfully imported foreign key (OpenSSH SSH-2 private key)...'. Press 'OK'.
- Then choose 'Save private key'
- Are you sure you want to save this key without a passphrase to protect it? Yes or No at your own decision...
- Save the file as 'C:\Users\\[your user name\]\.ssh\tortoisegit-putty.ppk'
- In tortoisegit choose Git clone
- In Url write an ssh url
- Choose load putty key and select the file you just generated 'C:\Users\\[your user name\]\.ssh\tortoisegit-putty.ppk'

4 comments:

Lolly Roll said...

Thank You! Very helpful

Paradigm said...

thanks indeed, very helpful for a 2:20AM task.

Drunk on Java said...

Thank you Sir!!!!
I have been working on setting up Git, TortoiseGit etc.
Your blog was instrumental in putting in the last piece of the puzzle.

Hope you dont mind referencing your blog from mine, if you do mind,many apologies,please let me know, I will remove the reference

Rod Nolan said...

I second the comments from Drunk on Java. Your tip provided the last puzzle piece. Cheers!