Where is hg-ssh?

I am trying to have a machine act as a rudimentary hg server, using hg-ssh, following those instructions:
https://sites.google.com/site/ucdcsssg/announcements/howtocollaborateusingmercurialwithhg-ssh

I spent a furious amount of time trying many variations of those instructions. I tried on a machine with opensuse 12.2 and one on 13.1. Same result. It keeps complaining that it can’t find hg-ssh. Then I downloaded the hg-ssh script and put it in the path. It now tells me a cryptic

remote: Illegal command "/usr/bin/hg -R cansimtk serve --stdio"
abort: no suitable response from remote hg!

Then I remembered I have a Gentoo install somewhere. Installed hg, and it came with hg-ssh. And it worked. So the issue seems to be about something in the opensuse package.

Suggestions on how to get hg-ssh working under opensuse?

On Mon 23 Feb 2015 01:06:02 AM CST, p barill wrote:

I am trying to have a machine act as a rudimentary hg server, using
hg-ssh, following those instructions:
http://tinyurl.com/ms3jcq8

I spent a furious amount of time trying many variations of those
instructions. I tried on a machine with opensuse 12.2 and one on 13.1.
Same result. It keeps complaining that it can’t find hg-ssh. Then I
downloaded the hg-ssh script and put it in the path. It now tells me a
cryptic

Code:

remote: Illegal command “/usr/bin/hg -R cansimtk serve --stdio”
abort: no suitable response from remote hg!


Then I remembered I have a Gentoo install somewhere. Installed hg, and
it came with hg-ssh. And it worked. So the issue seems to be about
something in the opensuse package.

Suggestions on how to get hg-ssh working under opensuse?

Hi
In openSUSE the package is mercurial, doesn’t hg -e|–ssh suffice?
hg-ssh seems to be defunct…


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

On Mon 23 Feb 2015 01:21:43 AM CST, malcolmlewis wrote:

[QUOTE]
On Mon 23 Feb 2015 01:06:02 AM CST, p barill wrote:

I am trying to have a machine act as a rudimentary hg server, using
hg-ssh, following those instructions:
http://tinyurl.com/ms3jcq8

I spent a furious amount of time trying many variations of those
instructions. I tried on a machine with opensuse 12.2 and one on 13.1.
Same result. It keeps complaining that it can’t find hg-ssh. Then I
downloaded the hg-ssh script and put it in the path. It now tells me a
cryptic

Code:

remote: Illegal command “/usr/bin/hg -R cansimtk serve --stdio”
abort: no suitable response from remote hg!


Then I remembered I have a Gentoo install somewhere. Installed hg, and
it came with hg-ssh. And it worked. So the issue seems to be about
something in the opensuse package.

Suggestions on how to get hg-ssh working under opensuse?

Hi
In openSUSE the package is mercurial, doesn’t hg -e|–ssh suffice?
hg-ssh seems to be defunct…

[/QUOTE]
Hi
Ahh it’s a script residing in the release tarball contrib and not
packaged. Grab the tarball from here for 3.1.2…
http://mercurial.selenic.com/release/
Extract and copy the contrib/hg-ssh into /usr/bin and check it’s
executable.

Might be worth a bug report…


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Not sure it does the same, but this is interesting. Where can I find some usage examples of this “-e” or “–ssh” thing? It is mentioned in the man page, but no clue on how to use it.

Yep. I tried that one and again got “remote: Illegal command “/usr/bin/hg -R cansimtk serve --stdio””. I also tried the source package for the opensuse mercurial package. It does contain the hg-ssh script, but it doesn’t work either. Bugzilla might be the logical next move!

Reading that documentation, it looks as if “hg-ssh” is part of Mercurial. Presumably it is installed with Mercurial or is something you setup following the Mercurial documentation.

I am not familiar with Mercurial.

Both the ssh client and sshd (the server) should be installed by default.

Hi
Aside from using hg to clone, no mercurial experience…

Maybe this will help: http://mercurial.selenic.com/wiki/SharedSSH