參考https://git-scm.com/book/zh/v1/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-Gitosis
或者h(yuǎn)ttp://blog.csdn.net/dddxxxx/article/details/49050145
進(jìn)行安裝、配置
補(bǔ)充:
發(fā)現(xiàn)用戶名中若包含. 則權(quán)限無法校驗(yàn)通過 比如xxx@qq.com這種, gitosis-admin倉庫中的gitosis.conf 及keydir中的命名為abc ?abc.pub
若.ssh文件夾中有多個(gè)key ?可在.ssh/config 中指定那些ip對(duì)哪個(gè)key, 例如:
HOst 127.0.0.1
KexALgorithms +diffie-hellman-group1-sha1
IdentityFile ~/.ssh/local.pub
User local