Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Never thought I'd write a title like that, but it's true

I have gitosis and hadoop installed.

> sudo /usr/lib/hadoop/bin/
  Enter passphrase for key '/root/.ssh/id_rsa': 
  root@localhost's password: 
  localhost: DEBUG:gitosis.serve.main:Got command 'cd /usr/lib/hadoop ; 
             /usr/lib/hadoop/bin/ --config /etc/hadoop/conf 
             start datanode'
  localhost: ERROR:gitosis.serve.main:Unknown command denied

WTF?! Why are these commands suddenly being passed to gitosis?

Thank you

share|improve this question
up vote 0 down vote accepted

It turns out, /root/.ssh/authorized_keys had the following line generated by gitosis:

### autogenerated by gitosis, DO NOT EDIT
command="gitosis-serve root@...",no-port-forwarding,...

Removed gitosis, removed this line, everything works

share|improve this answer
which is why you setup gitosis under it's own git user. :) – Sekhat Jul 23 '10 at 10:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.