Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

I have gitosis and hadoop installed.

> sudo /usr/lib/hadoop/bin/start-all.sh
  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/hadoop-daemon.sh --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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.