How to let TortoiseHg (Mercurial) on Windows use the Private Key file generated (by Puttygen)?

后端 未结 2 1368
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 03:23

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         


        
2条回答
  •  滥情空心
    2021-01-30 03:30

    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.

提交回复
热议问题