Peculiar Error: Illegal Command
James Herdman
james.herdman at gmail.com
Thu Jul 30 17:20:18 UTC 2009
Ah ha! I've got it solved. It turns out that the file "hg-ssh-access.conf"
should have been named "access.conf". This must have changed somewhere along
the line and I missed the memo.
Thank you everyone for your help,
James
On Thu, Jul 30, 2009 at 12:36 PM, James Herdman <james.herdman at gmail.com>wrote:
> Hi friends.
>
> Thank you for all of your help so far. I think I've mostly got this nailed
> down.
>
> Matt was correct: we're not even touching Mercurial yet. The problem occurs
> when logging in. Here's the story:
>
> 1. User logs in successfully
> 2. hg-admin-tools is set up to kick off hg-ssh upon login, provided a
> particular SSH key. This happens.
> 3. Everything is fine and dandy until hg-ssh examines my rule-sets. The
> method I'm talking about is called try_cmd in hg-ssh. What follows is my
> hg-ssh-acccess.conf file. Note that my team is small, and I trust everyone,
> so I pretty much leave things wide open to them:
>
> --- BEGIN ---
>
> write user=users/**
> read user=users/**
>
> --- END ---
>
> After the rules tell hg-ssh that things aren't kosher, it writes "Illegal
> command" to STDERR, and then aborts. Hence my problem.
>
> I'm at a loss, my friends. Does anyone have any suggestions?
>
> James
>
>
> On Thu, Jul 30, 2009 at 8:08 AM, Ingo Proetel <proetel at aicas.de> wrote:
>
>> Hi,
>>
>> >> $ hg -v clone . ssh://hg@myserver/my_repos
>> >> => running ssh hg at myserver "hg init my_repos"
>> >> => Illegal command 'hg init my_repos'
>> >> => abort: could not create remote repo!
>> >>
>> try removing the quotes:
>> ssh hg at myserver hg init my_repos
>>
>>
>> Cheers,
>> Ingo
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20090730/65b043b2/attachment-0001.html>
More information about the Mercurial
mailing list