I assume you already have one, and in this guide we don't want to push with command line since we'll be using TortoiseHg. Ignore the rest, from "Creating a Mercurial repository" and forward. Use the instructions here to generate an SSH key and add it to sourcehut:
Mercurial windows ssh key windows#
Getting TortoiseHg on Windows to work with SourceHut's SSH authentication Like running the main PuTTy application, or running tortoiseplink, or editing your mercurial.ini file. But remember the guide omits all the things I read I should do and which I thus attempted, but it didn't work, and eventually turned out not to be needed anyway. When you read this guide, you might think it doesn't sound that complicated after all. So now I'm writing my own half-baked guide, mostly for my future self in case I need it again, but others might stumble over it and maybe find it useful too I guess. I couldn't remember anything, so had to figure it all out all over again. I got it all to work around a year ago, but I recently wiped my hard drive and needed to do it all over. Getting SSH to work involved juggling things like multiple types of SSH keys and formats all placed in a hidden folder, many different helper tools, and reading dozens of half-baked how-to guides that all contradict each other, often assume prior knowledge, and that are all for slightly different use cases which means they didn't quite work for me. Unlike BitBucket, SourceHut does not allow HTTPS authentication, so you have to use SSH, and nobody ever sat down and made SSH easy to use on Windows. Now, SourceHut has been a pain to use in many ways for a non-technical person like me, but I've had the most pain at all trying to get SSH authentication to work. Why did I choose it then? The "just works" alternatives had pricing that just did not work for a game development use case.
![mercurial windows ssh key mercurial windows ssh key](https://www.pseudotecnico.org/mozilla/man/images/mercurial_ini.png)
It's made for people who identify with hacking and tinkering and knowing all the technical stuff. SourceHut is the opposite of "it just works". I and many other Mercurial lovers have then had to find alternative hosting. And BitBucket was a hosting solution for Mercurial that was affordable and also just worked. I wouldn't really have cared about that, except it made BitBucket close down their support for Mercurial some time ago. Unfortunately Mercurial has become a niche choice as Git has achieved overwhelming popularity, largely due to GitHub.
![mercurial windows ssh key mercurial windows ssh key](https://ekkescorner.files.wordpress.com/2010/02/ssh-keygen-ubuntu.png)
You can question my assertion, but my preference is my preference in any case.)
![mercurial windows ssh key mercurial windows ssh key](https://s3.amazonaws.com/s.accel.io/g/706/checklist_cover.png)
(I don't want to get into an argument over this. This is one reason I strongly prefer Mercurial for source control over Git. Or at least I highly prefer if things just work, and I don't have to fiddle with settings and configurations. I'm a skilled programmer, but I'm not a technical person. You can skip to the header below for the actual guide.