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.
sshdand password-based authentication disabled
SSH-2 RSAand enter
Number of bits in a generated key
Save public keyand
Save private key
Public key for pasting into OpenSSH authorized_keys file
Mercurial.inifile in your home directory with the following content:
Pageant.exe(which has equivalent functionality to OpenSSH’s
Content © 2023 Richard Cook. All rights reserved.