“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

查看:1491
本文介绍了“ERROR:gitosis.serve.main:Repository read access denied”当试图克隆git repo时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台台式机运行Ubuntu 11.04和一台运行Debian 6.0.1a的Netbook。我已在桌面PC上安装并配置了git,如 here



我也在学习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屋!

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