You must install the git-shell user git-shell . From the docs (in fact, almost the entire manual page):
This is intended to be used as an login shell for SSH accounts that you want to limit to just pressing GIT pull / push. This allows only server-side GIT commands that implement the pull / push function to be executed. Commands can only be executed with the -c option; the shell is not interactive.
(Rup, in the comments, if you just played google git shell ...)
source share