将用户添加到 Gitolite
我正在尝试设置 Gitolite,但遇到了一个奇怪的问题:
当我为新用户(例如 raphaelcruzeiro.pub)添加新的公钥文件时,giolite 在推送时向我发送以下警告
remote:
remote: ***** WARNING *****
remote: the following users (pubkey files in parens) do not appear in the config file:
remote: raphaelcruzeiro(raphaelcruzeiro.pub)
:使用此用户克隆存储库,我的权限被拒绝:
Cloning into gitolite-admin...
R access for gitolite-admin DENIED to raphaelcruzeiro
fatal: The remote end hung up unexpectedly
我在这里遗漏了什么吗?在哪里以及如何将用户添加到配置文件中?
不幸的是,Gitolite 的文档在这个问题上相当模糊。
I'm trying to setup Gitolite but I'm running into a weird issue:
When I add a new public key file for a new user (say raphaelcruzeiro.pub), giolite sends me the following warning on push:
remote:
remote: ***** WARNING *****
remote: the following users (pubkey files in parens) do not appear in the config file:
remote: raphaelcruzeiro(raphaelcruzeiro.pub)
And when I try to clone a repository with this user, I get a permission denied:
Cloning into gitolite-admin...
R access for gitolite-admin DENIED to raphaelcruzeiro
fatal: The remote end hung up unexpectedly
Am I missing something here? Where and how do I add the user to the configuration file?
Unfortunately Gitolite's documentation is rather vague on this matter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是将用户添加到 gitolite 的工作流程:
将用户公钥添加到地图.pub
keys
中,格式为编辑您的 gitolite 配置文件 (
gitolite.pub) conf
),该文件位于地图conf
中。当你打开它时,一切都会清晰。示例:
提交新密钥和修改后的配置文件。然后将其推送到您的 gitolite 服务器。
应该这样做!
[编辑] 顺便说一句,这里是 gitolite 段落,解释了我上面写的内容:
http://gitolite.com/gitolite/conf.html。
Here's the workflow for adding users to gitolite:
Add the users public key to the map
keys
as<username>.pub
Edit your gitolite config file (
gitolite.conf
), this file is in the mapconf
. When you open it, everthing will be clear.example:
Commit the new key and the modified config file. Then push it to your gitolite server.
That should do it!
[Edit] BTW, here is the gitolite paragraph that explains what I wrote above:
http://gitolite.com/gitolite/conf.html.
请注意,最近的 gitolite v3.5.2-10-g437b497 引入了(2013 年 9 月,提交 59c817d0 ):
<一href="http://gitolite.com/gitolite/ukm.html" rel="nofollow">ukm,用于“用户密钥管理”。
它引入了一定程度的委托,不仅 gitolite 管理员用户可以添加新的 ssh 公钥,其他用户现在也可以这样做。
您可以在“
contrib/t/ 中看到它的实际效果ukm.t
”:您需要启用该功能:
Note that the recent gitolite v3.5.2-10-g437b497 introduces (September 2013, commit 59c817d0):
ukm, for "user key management".
It introduces a level of delegation, when not just the gitolite admin user can add new ssh public keys, but other users can now do so as well.
You can see it in action in "
contrib/t/ukm.t
":You need to enable that feature: