I'm trying to get around with a running gitolite server. When running ssh git@host info
I get the expected list of repositories. But when I try to run and other command e.g. ssh git@host help
the server responds with bad command: help
Unfortunately the gitolite documentation didn't help with the troubleshooting :(
Any suggestions? Cheers.
This is expected.
Based on how gitolite uses ssh (ie, using forced command), you will always get that error message for any command except:
There is no interactive ssh session authorized with Gitolite.
Any command is intercepted and run through the gitolite script.
If it isn't one of the defined and enabled commands... you will get a "bad command
" every time.
In this specific case, the configuration of gitolite the OP was using did not have help
as a defined and enabled command; per follow-up comments.