验证git仓库中的用户 [英] Authenticating users in git repository

查看:39
本文介绍了验证git仓库中的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个新的git存储库,并且仅将开发人员的一个公共密钥添加到了 authorized_keys 文件中.但是来自其他系统的所有其他用户也可以克隆我的git repo的内容,而无需添加到该文件中.

I have set up a new git repository and added only one public key of a developer to the authorized_keys file. But all the other users from other systems are also able to clone the contents of my git repo without being added in this file.

我在哪里做错了?谁能指导我?

Where am I doing a mistake ? Can anyone guide me?

我的最终目标是仅对一组开发人员而不是对所有用户具有读/写访问权限.

My ultimate aim is to have read/write access to only a set of developers and not to all the users.

谢谢

推荐答案

"authorized_keys"文件仅告诉服务器哪些用户可以在不提供密码的情况下登录;这与git访问无关.如果要管理对git存储库的读/写访问权限,则可以采用不同的策略,但这是一些建议:

the "authorized_keys" file just tells the server which user can logon without providing a password; this has nothing to do with git access. If you want to manager read/write access to git repositories there are different strategies possible, but these are a few propositions:

  • 乙醇钠
  • gitlab
  • 好斗的

乙醇钠 需要更多的手动操作才能发挥作用(我的经验);特别是使其与LDAP访问一起使用.

gitolite requires much more manual manipulation to get this working (my experience); especially to make it working with LDAP access.

gitlab 是我个人的最爱;因为bitnami提供了一键式"安装程序,该安装程序为我提供了一个干净的Web界面,该界面托管良好,并且易于管理每个存储库等的读/写访问权限.

gitlab is my personal favorite; since bitnami provided a "one-click" installer that gave me a clean web interface that is well hosted and is easy to manage read/write access for each repository etc.

这篇关于验证git仓库中的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆