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

后端 未结 2 1354
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 03:37

    need an ssh key generator first

    1. cmd: ssh-keygen -t rsa
    2. open PuTTY Key Generator
    3. Conversions > import key: open the id_rsa file in C:\Users\.ssh (you may have to create the folder !must run cmd as Admin!)
    4. Save the imported file id_rsa as id_rsa.ppk
    5. Open Pageant.exe in TortoiseHG folder
    6. It will show up in Taskbar
    7. Right click and click add keys
    8. Finally add your new ppk file

    Oh right copy the contents of id_rsa.pub to hg host

提交回复
热议问题