Setting up secure Mercurial access over ssh using TortoiseHg



I’ve been primarily a Linux/Mac OS X-based developer for the last year or so. However, I recently moved back to Microsoft and so figured that I should refamiliarize myself with Windows development. I have, of course, become completely dependent upon the standard tools such as ssh. Being the security-minded fellow I am, I will continue to fanatically refuse to use ssh with password-based authentication instead of public-private key pairs. While ports of all these tools, of course, exist for Windows, it is not always so straightforward to use them in what is a completely natural way. Here I will describe in detail my experiences setting up Mercurial over ssh with passwordless authentication and encryption. I’m going to use TortoiseHg since it includes PuTTY, which is a fairly nice Windows implementation of ssh. While these steps have been detailed many times before, I will repeat them here for anyone who’s interested.




ssh = TortoisePlink.exe -i "C:/path/to/ppk-file.ppk"
Tags: Windows tools

All content © 2018 Richard Cook. All rights reserved.