How to force Mercurial on Windows to use the SSH key for push / pull?

How to tell TortoiseHg (or Mercurial in general) that I want to use this SSH key when pushing / pulling to / from a remote repository?

+4
source share
2 answers

On Windows, see Accessing SSH-managed storage from a Windows client : you need PuTTY, plink, and specific configuration settings.

To put this in a specific repository, enter .hg/hgrc

 [ui] ssh="C:\path to\plink.exe" -ssh -i "C:\your path to\private.key" 

Also note that you do not need to specify a key path if you use pageant.

+7
source

You need to use PuTTY, configure a profile to connect to a remote repository. and then in TortoiseHg you can connect to ssh: // profilename /

eg. I installed one for the bitbucket and called it bitbom, so the SSH: // bitb / URL connection to the repo.

0
source

All Articles