git-restrict:git存储库权限管理的简单实用程序

时间:2021-04-01 15:17:29
【文件属性】:
文件名称:git-restrict:git存储库权限管理的简单实用程序
文件大小:16KB
文件格式:ZIP
更新时间:2021-04-01 15:17:29
git security minimal static chroot git限制 一个最小的实用程序,当与ssh的authorized_keys文件中的命令指令一起使用时,它允许基于ssh密钥进行存储库权限管理。 如果使用,它将仅允许git-upload-pack和git-receive-pack因为允许特定用户/ SSH密钥运行的命令。 git-restrict也被编译为静态二进制文件,因此在chroot环境中很容易使用它。 这显然是故意的。 基本用法 $ 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 查看contrib目录以查看
【文件预览】:
git-restrict-master
----contrib()
--------keys()
--------gen_rules.sh(401B)
----git-restrict.1(847B)
----git-restrict.c(2KB)
----LICENSE(34KB)
----README.md(804B)
----Makefile(748B)

网友评论