在没有gitosis/gitolite的情况下通过SSH运行“安全" git服务器? [英] Running a “secure” git server over SSH without gitosis/gitolite?

查看:63
本文介绍了在没有gitosis/gitolite的情况下通过SSH运行“安全" git服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用authorized_keyscommand=在ssh上运行git服务器,而不使用gitosis/gitolite来限制对git存储库的访问?

Is it possible to run a git server over ssh, using authorized_keys and command= to restrict access to only the git repositories, without using gitosis/gitolite?

推荐答案

是的,分配

Yes, assign the git shell as the login shell for all users which shall only have git access.

这篇关于在没有gitosis/gitolite的情况下通过SSH运行“安全" git服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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