I have a working installation of Gitosis, but I'm wondering how the gitosis-serve command ever gets invoked! From all I can understand, when you connect through SSH as the git user (using git@host), the serve.py script gets invoked by the script generated by setuptools in /usr/bin/gitosis-serve, which then launches git-shell.
However, how is the git user's login connected to /usr/bin/gitosis-serve?
Thanks