views:

152

answers:

1

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://[email protected]/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?

+2  A: 

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"):

[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.

David Tischler
i see. thanks. i may add here that the "home directory" on Windows 7 is something like c:\users\peter
動靜能量