git的读写访问权限,而不需要服务器的用户 [英] git write and read access without beeing user of server

查看:156
本文介绍了git的读写访问权限,而不需要服务器的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了一段时间,但找不到合适的解决方案: 我的情况:

i was searching for a while, but couldn't find a fitting solution: My Case:

我有一台服务器,上面有一个git存储库.只有使用合适的ssh键才能连接到服务器. 是否有可能给没有访问服务器权限的用户授予从该特定存储库写入和读取的权限?

I have a server on which i have a git repository. The connection to the server is only possible with fitting ssh key. Is there a possibility to give a user, who hasn't access to the server, permissions to write and read from this specific repository?

是否只有通过在服务器上为用户创建用户帐户的可能性,或者我可以做其他改变吗?当然,我只希望他对存储库进行读/写操作,但是我不希望他看到服务器上该存储库之外发生的事情?

Is there only the possibility by creating a user account for the user on the server or can i do it different? OF course i only want him to read/write to the repo, but i dont want him to see what is going on beyond this repository on the server?

希望这不是开箱即用的想法吗?! 预先感谢!

Hopefully this is not to much thought outside the box?! Thanks in advance!

推荐答案

如果服务器上有 Gitolite ,您将能够注册该外部用户ssh公钥,从而使他/她可以访问一个特定的存储库(如在您的

If you had on the server the authorization layer Gitolite, you will be able to register that external user ssh public key, giving him/her access to one one specific repository (as configure in your gitolite configuration file)

(来自博客文章"

这篇关于git的读写访问权限,而不需要服务器的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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