I have used Puttygen to create a public and a private key, and then is ready to let TortoiseHg on Windows 7 do a clone by going to
ssh://somebody@code.somewhere.com/somecode
but there seems to be no where to add the private key to TortoiseHg? (or even just the mercurial command line)
The file is already some where on hard disk as somefile.ppk Does someone know how to add it?
Either add the following to the [ui]
section of the mercurial.ini in your home directory (assuming your key is in "C:\Users\UserName\mykey.ppk"):
TortoiseHg 3.5 and newer (thanks to Josh Noe for pointing out in the comments that tortoiseplink.exe is no longer added to the PATH by default):
[ui]
ssh = "C:\Program Files\TortoiseHg\lib\tortoiseplink.exe" -ssh -i "C:\Users\UserName\mykey.ppk"
Older versions of TortoiseHg (or if you have tortoiseplink.exe on your PATH):
[ui]
ssh = tortoiseplink.exe -ssh -i "C:\Users\UserName\mykey.ppk"
or use Pageant, found in the TortoiseHg installation path (e.g. C:\Program Files\TortoiseHg\Pageant.exe). Start it, double click the taskbar icon that appears, and add the .ppk-file.