A) The simplest option is to just have people ssh into your machine. If they setup an alias in ~/.ssh/config, then it is easy:
#~/.ssh/config on your collaborators computers Host uwe User <their account name> HostName <your static ip> If you setup ssh keys (ssh-copy-id), then they can just hg clone ssh://uwe/location/of/repo etc. B) hg serve is very simple and works well, but you need to manage security yourself. C) More complicated: I run a Heptapod server (https://heptapod.net/) in Docker which listens on local ports on my machine. Using a proxy, people can clone from this #~/.ssh/config on your collaborators computers Host uwe User <their account name> HostName <your static ip> Host heptapod ProxyJump uwe User git Hostname localhost Port 11122 # I have Docker map a custom port to 22 on the container so # that it does not conflict with ssh into my machine. This gives you a full GitLab web interface etc. (with mercurial access) but requires a lot more work to get going/maintain. Very nice though. Michael. P.S. I have not tried hgweb - it looks light it might be useful. > On Feb 24, 2023, at 10:33 PM, Uwe Brauer <o...@mat.ucm.es> wrote: > > > Hi > > I just found > https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server > > So it seems possible, if one has a Laptop/Desktop with a permanent > internet connection a fixed IP (or better DNS entry) to set up a very > basic git server. > > Now I am confused about > https://www.mercurial-scm.org/wiki/PublishingRepositories > > I would like to use my latop with a static IP (but no name server) and > just to share some repositories with one or two collaborators, > basically, push/pull and clone no fancy web interface needed. > > What would be the best solution in this scenario (I would prefer https > and set up a password, but could live with ssh). > > > Thanks and regards > > Uwe Brauer > > -- > Warning: Content may be disturbing to some audiences > I strongly condemn Putin's war of aggression against the Ukraine. > I support to deliver weapons to Ukraine's military. > I support the ban of Russia from SWIFT. > I support the EU membership of the Ukraine. > https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/ > > _______________________________________________ > Mercurial mailing list > Mercurial@lists.mercurial-scm.org > https://lists.mercurial-scm.org/mailman/listinfo/mercurial _______________________________________________ Mercurial mailing list Mercurial@lists.mercurial-scm.org https://lists.mercurial-scm.org/mailman/listinfo/mercurial