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*
- 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'