git write and read access without beeing user of server

人走茶凉 提交于 2020-01-15 06:28:15

问题


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

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!


回答1:


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)

(from the blog post "SSH and the Gitolite Installation – part 2")



来源:https://stackoverflow.com/questions/9850357/git-write-and-read-access-without-beeing-user-of-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!