如何告诉TortoiseHg(或一般Mercurial)我想在推/拉远程存储库时使用给定的SSH密钥?
On Windows, see Accessing SSH-controlled repositories from a Windows client : you need PuTTY, plink and a particular config setting.
To put that in a particular repository, put in .hg/hgrc
[ui]
ssh="C:\path to\plink.exe" -ssh -i "C:\your path to\private.key"
Also note that you don't need to specify the key path if you use pageant.
You need to use PuTTY, set up a profile in that for the connection to the remote repository. and then in TortoiseHg you can then connect to ssh://profilename/
eg I set one up for bitbucket and called it bitb, so the connection is ssh://bitb/url-to-repo.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.