Git-shell: git-shell-commands should exist rather than "What do you think I am? A shell?"

10,076

Solution 1

Git 1.7.4 just improved the functionality of git-shell, so now it presents itself differently. See also https://github.com/git/git/commit/e69164ddb9d6092a94915bb984749d48f598cea8

You have set up your server correctly, as described in the document.

Solution 2

Inside the source code dir there's a /contrib dir and inside you will find a /git-shell-commands/* Copy that dir to the Home of git user and change owner for that dir and files inside.

It should work ok.

Share:
10,076
AaronDS
Author by

AaronDS

Updated on June 11, 2022

Comments

  • AaronDS
    AaronDS almost 2 years

    I'm trying to set up my git server on Ubuntu 12.04 as described in this document. I've got my ssh key working fine, and I've changed the shell of the git account to use /usr/bin/git-shell.

    According to the document I should now expect to see "What do you think I am? A shell?", however, in actual fact I see the usual shell intro for ubuntu, followed by the following:

    fatal: Interactive git shell is not enabled.
    hint: ~/git-shell-commands should exist and have read and execute access.
    

    As I understand it, if I am to resolve the directory issue there I'll just end up with some git prompt rather than the message I am looking for.