3 ms·
If you have ssh access to the machine, then you can push or pull from a repo in that machine. It is that simple. Unfortunately, as I've been discussing with ot
by Silhouette 13y ago
If you have ssh access to the machine, then you can push or pull from a repo in that machine. It is that simple.
Unfortunately, as I've been discussing with others elsewhere in this thread, it's not really that simple at all in some cases. I'm typing this on a Windows machine that has Hg installed, and I routinely SSH from this machine into various Linux servers that also have Hg installed, yet for reasons we've yet to determine, trying to access any sort of ssh:// repo using the hg command line client fails.
- imakesnowflakes 13y agoHave you set the configuration option that is used by mercurial to find the ssh program to use for ssh operations? also, HG requires the path to the repo as one relative to the home folder of the user. ie, if you are logging in as silhouette and your repo is located in /home/silhouette/projects/myproject then the command to push to this repo would be hg push ssh://silhouette@192.168.1.10/projects/myproject and if you project was in /var/www/projects/myproject then it would be hg push ssh://silhouette@192.168.1.10/../../var/www/projects/myproject
- Silhouette 13y agoAs far as we can see, those things are all set up properly, but we aren't getting that far anyway. Something is failing at the authentication/authorisation stage when setting up the SSH connection, hence our current preference for the web-based alternatives.
- imakesnowflakes 13y agoHave you tried doing push/pull with --debug flag?