“ERROR:gitosis.serve.main:Repository read access denied”当试图克隆git repo时 [英] "ERROR:gitosis.serve.main:Repository read access denied" when trying to clone a git repo
问题描述
我也在学习Symfony,并在我的电脑上设置了Jobeet项目的存储库。
现在,当我尝试从Netbook上的Debian克隆资源库时,我收到这个错误:
错误: gitosis.serve.main:存储库读访问被拒绝
我有安装ssh,可以很容易地连接到Ubuntu从Debian与ssh。
我的gitosis.conf的内容:
[gitosis]
[group symfony]
writable = jobeet
members = ako @ ako-ubuntu-11 ako @ debian
[group team]
writable = testproject
members = ako @ ako-ubuntu-11 ako @ debian
[group gitosis-admin]
members = ako @ ako-ubuntu-11 ako @ debian
writable = gitosis-admin
我已经复制id_rsa.pub文件(Debian用户的公钥)也可以转到keydir目录,然后被推回到gitosis repo。
我可以从Ubuntu克隆资源库机器,所以我认为它与权限和/或ssh有关。
任何hel p非常感谢。
首先我会使用gitolite。遗传不再积极发展。
检查您是否需要将公钥命名为配置中显示的用户名。您提交的公钥应重命名为jobeet.pub。
希望这有帮助。
I have one desktop PC running Ubuntu 11.04 and one Netbook running Debian 6.0.1a. I have installed and configured git as described here, on my desktop PC.
I am also learning Symfony and have setup a repository for the Jobeet project on my PC. Now, when I try to clone the repository from Debian on my Netbook, I get this error:
ERROR:gitosis.serve.main:Repository read access denied
I have setup ssh and can easily connect to the Ubuntu from Debian with ssh.
Contents of my gitosis.conf:
[gitosis]
[group symfony]
writable = jobeet
members = ako@ako-ubuntu-11 ako@debian
[group team]
writable = testproject
members = ako@ako-ubuntu-11 ako@debian
[group gitosis-admin]
members = ako@ako-ubuntu-11 ako@debian
writable = gitosis-admin
I have copied the id_rsa.pub file (public key of the Debian user) to the keydir directory too, and pushed back to the gitosis repo.
I am able to clone the repository from Ubuntu machine, so I think it has something to do with the permissions and/or ssh.
Any help is greatly appreciated.
First I would use gitolite instead. Gitosis is no longer actively developed.
Check that you need to name the public key to your user name that appears in the config. Your public key that you commit should be renamed to jobeet.pub.
Hope this helps.
这篇关于“ERROR:gitosis.serve.main:Repository read access denied”当试图克隆git repo时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!