Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a “secure” git server over SSH without gitosis/gitolite?

Tags:

git

ssh

Is it possible to run a git server over ssh, using authorized_keys and command= to restrict access to only the git repositories, without using gitosis/gitolite?

like image 563
David Wolever Avatar asked May 03 '11 15:05

David Wolever


1 Answers

Yes, assign the git shell as the login shell for all users which shall only have git access.

like image 120
Marc Mutz - mmutz Avatar answered Nov 15 '22 21:11

Marc Mutz - mmutz