getting error in ssh command.

443 views
Skip to first unread message

Himanshu Negi

unread,
Jan 20, 2014, 10:47:18 AM1/20/14
to gito...@googlegroups.com
While doing ssh, I am getting this error FATEL : unknown git/gitolite command : touch a.php.
But If i make "command=/home/gitolite-shell ......" commented in authorized_keys in .ssh folder, It is working.

Any other suggestion besides doing changes in authorized_keys ????

Thanks in Advance.
HimNG

milk

unread,
Jan 20, 2014, 2:48:16 PM1/20/14
to gitolite
You are attempting to use a gitolite managed ssh key to interact with your system and using non-gitolite commands. You most likely want to add a separate non-gitolite ssh key and a non-gitolite user to perform these commands.

Himanshu Negi

unread,
Jan 21, 2014, 9:41:36 AM1/21/14
to gito...@googlegroups.com
On Tuesday, 21 January 2014 01:18:16 UTC+5:30, milki wrote:
> You are attempting to use a gitolite managed ssh key to interact with your system and using non-gitolite commands. You most likely want to add a separate non-gitolite ssh key and a non-gitolite user to perform these commands.

I think this error is coming from parse_soc function in gitolite-shell program.
sub parse_soc {
my $soc = $ENV{SSH_ORIGINAL_COMMAND};
$soc ||= 'info';

my $git_commands = "git-upload-pack|git-receive-pack|git-upload-archive";
if ( $soc =~ m(^($git_commands) '/?(.*?)(?:\.git(\d)?)?'$) ) {
my ( $verb, $repo, $trace_level ) = ( $1, $2, $3 );


Can anyone help with this pattern match $soc =~ m(^($git_commands) '/?(.*?)(?:\.git(\d)?)?'$) ).
or What should be value of $verb, $repo , $trace_value so that i can change this expression according to..

Warm Thanks

Ken Rachynski

unread,
Jan 21, 2014, 10:32:17 AM1/21/14
to gito...@googlegroups.com
On Tuesday, January 21, 2014 7:41:36 AM UTC-7, Himanshu Negi wrote:
> On Tuesday, 21 January 2014 01:18:16 UTC+5:30, milki wrote:
> > You are attempting to use a gitolite managed ssh key to interact with your system and using non-gitolite commands. You most likely want to add a separate non-gitolite ssh key and a non-gitolite user to perform these commands.
>
> I think this error is coming from parse_soc function in gitolite-shell program.

I'll second milki's comment: This looks like you are attempting to use shell commands with a gitolite account. Have you set up your account per the documentation here: http://gitolite.com/gitolite/sts.html#giving-shell ?

Sitaram Chamarty

unread,
Jan 21, 2014, 10:50:17 AM1/21/14
to Himanshu Negi, gito...@googlegroups.com
I'm sorry, but your level of awareness of the issues does not warrant you looking into the source code.

Please stop doing that. You will only hurt yourself.

milk

unread,
Jan 21, 2014, 11:32:27 AM1/21/14
to Himanshu Negi, gitolite
On Tue, Jan 21, 2014 at 6:41 AM, Himanshu Negi <warrio...@gmail.com> wrote:
On Tuesday, 21 January 2014 01:18:16 UTC+5:30, milki  wrote:
> You are attempting to use a gitolite managed ssh key to interact with your system and using non-gitolite commands. You most likely want to add a separate non-gitolite ssh key and a non-gitolite user to perform these commands.

I think this error is coming from parse_soc function in gitolite-shell program.

Did you understand what I said? You cannot run normal shell commands through gitolite.

-milki
Reply all
Reply to author
Forward
0 new messages