cwallenpoole
cwallenpoole

Reputation: 82018

How do I get SourceTree my credentials for a custom Mercurial endpoint?

I've been trying to get SourceTree to communicate with my company's Mercurial remote repository but I seem to be failing. On the command line, I can get hg pull working just fine (it authenticates with my id_rsa private key without any trouble), but when I try to pull through the UI, it just spins. I have an embedded Mercurial install as well as a separate hg install on the command line.

Upvotes: 0

Views: 233

Answers (1)

cwallenpoole
cwallenpoole

Reputation: 82018

So, the issue, as it turns out, has to do with the SSH client configuration in the settings. While Git can use any SSH keys available, Mercurial requires the SSH key to be in ppk format. The good news is that this is available through Tools > Create or Import SSH Keys. This will launch PuTTY Key Generator.

  1. Click "Load" and then set the dropdown for file types to ".".
  2. Navigate to the location of the private key file and load id_rsa or similar.
  3. Click "Save private key". This will output the ppk file.
  4. Go back to SourceTree and choose Tools > Options
  5. Set the SSH client to Putty/Plink.
  6. Browse for the ppk file you just created.

Upvotes: 1

Related Questions