git-restrict.1 (847B)
1 .TH GIT-RESTRICT 1 2021-03-31 2 .SH NAME 3 git-restrict 4 .SH SYNOPSIS 5 .B git-restrict 6 .IR repository0 7 .IR repository1 ... 8 .PP 9 .SH DESCRIPTION 10 git-restrict is a minimal utility that allows repository permission 11 management based on ssh keys when used in the command directive in 12 ssh's authorized_keys format. If used, it will only allow 13 .B git-upload-pack 14 and 15 .B git-receive-pack 16 as the commands allowed to be ran by a specific user/SSH key. 17 .TP 18 .SS Basic usage: 19 .Bd -literal 20 21 $ cat ~/.ssh/authorized_keys 22 command="/usr/bin/git-restrict repo0 repo1 repo2" ssh-ed25519 AAA...1 user0@machine 23 command="/usr/bin/git-restrict repo3 repo0" ssh-ed25519 AAA.Z user1@machine 24 25 It is also useful to see the 26 .B contrib 27 directory to see an automation example. 28 .SH AUTHORS 29 Ivan J. <parazyd@dyne.org> 30 .SH LICENSE 31 GNU Affero General Public License version 3