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