1

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

Mamut
  • 181
  • 1
  • 7

1 Answers1

0

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

Mamut
  • 181
  • 1
  • 7