用了一台服务器做git的远程仓,上面有A,B,C的项目,只想成员访问A的项目,但是现在只能提供一个账号为git出来给大家拉项目,并且密码公开了,导致有成员可以直接ssh上服务器看到所有的项目,这不符合公司管理安全,请问给位应该怎么做呢?
过去多啦不再A梦2017-04-25 09:04:59
Try gitosis. Everyone submits his or her public key to the administrator, and then configures accessible projects for everyone in the gitosis configuration file. Access permissions can be divided into read-only and read-write.
漂亮男人2017-04-25 09:04:59
First of all, you can consider using a ready-made management system, such as gitlab.
Then, Git's ssh protocol is actually based on ssh file permissions. You can create separate users for each person on the server, and then add users who can access project A to group A, and then only authorize group A to access git Warehouse files.