Results 1 to 7 of 7

Thread: Where is hg-ssh?

  1. #1
    Join Date
    Jul 2009
    Location
    Montréal, Canada
    Posts
    54

    Default 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/ucdcss...rialwithhg-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
    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,674
    Blog Entries
    15

    Default Re: Where is hg-ssh?

    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!


  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,674
    Blog Entries
    15

    Default Re: Where is hg-ssh?

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

    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....

    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!


  4. #4
    Join Date
    Jul 2009
    Location
    Montréal, Canada
    Posts
    54

    Default Re: Where is hg-ssh?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    In openSUSE the package is mercurial, doesn't hg -e|--ssh suffice?
    hg-ssh seems to be defunct....
    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.

  5. #5
    Join Date
    Jul 2009
    Location
    Montréal, Canada
    Posts
    54

    Default Re: Where is hg-ssh?

    Quote Originally Posted by malcolmlewis View Post
    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...
    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!

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,504
    Blog Entries
    3

    Default Re: Where is hg-ssh?

    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.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,674
    Blog Entries
    15

    Default Re: Where is hg-ssh?

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

    Maybe this will help: http://mercurial.selenic.com/wiki/SharedSSH
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •