Reputation: 9850
How to tell TortoiseHg (or Mercurial in general) that I want to use a given SSH key when pushing/pulling to/from a remote repository?
Upvotes: 7
Views: 4266
Reputation: 90712
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.
Upvotes: 8
Reputation: 3962
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/
e.g. I set one up for bitbucket and called it bitb, so the connection is ssh://bitb/url-to-repo.
Upvotes: 0