“错误:gitosis.serve.main:存储库读取访问被拒绝"尝试克隆 git repo 时 [英] "ERROR:gitosis.serve.main:Repository read access denied" when trying to clone a git repo

查看:36
本文介绍了“错误:gitosis.serve.main:存储库读取访问被拒绝"尝试克隆 git repo 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台运行 Ubuntu 11.04 的台式电脑和一台运行 Debian 6.0.1a 的上网本.我已按照此处的说明在我的台式电脑上安装和配置了 git.

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.

我也在学习 Symfony,并在我的 PC 上为 Jobeet 项目设置了一个存储库.现在,当我尝试在我的上网本上从 Debian 克隆存储库时,我收到此错误:

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

我已经设置了 ssh,并且可以通过 ssh 从 Debian 轻松连接到 Ubuntu.

I have setup ssh and can easily connect to the Ubuntu from Debian with ssh.

我的 gitosis.conf 的内容:

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

我也将 id_rsa.pub 文件(Debian 用户的公钥)复制到了 keydir 目录,并推回了 gitosis repo.

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.

我能够从 Ubuntu 机器克隆存储库,所以我认为它与权限和/或 ssh 有关.

I am able to clone the repository from Ubuntu machine, so I think it has something to do with the permissions and/or ssh.

非常感谢任何帮助.

推荐答案

首先我会使用 gitolite.Gitosis 不再积极发展.

First I would use gitolite instead. Gitosis is no longer actively developed.

检查您是否需要将公钥命名为配置中显示的用户名.您提交的公钥应重命名为 jobeet.pub.

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.

希望这会有所帮助.

这篇关于“错误:gitosis.serve.main:存储库读取访问被拒绝"尝试克隆 git repo 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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