无法克隆存储库:致命:R任何gitolite-admin gitolite由fallthru拒绝

时间:2013-11-14 11:15:38

标签: linux gitolite

我第一次设置 gitolite 。我正在关注this instructions

当我ssh时,它看起来很好:

$ ssh -p 2222 gitolite@debian
PTY allocation request failed on channel 0
hello gitolite, this is gitolite@debian running gitolite3 v3.5.3.1-1-gf8776f5 on git 1.7.2.5

 R W    gitolite-admin
 R W    testing
Connection to debian closed.

但是在尝试克隆时,它会给我以下错误:

$ git clone ssh://gitolite@debian:2222/home/gitolite/repositories/gitolite-admin.git
Cloning into 'gitolite-admin'...
FATAL: R any home/gitolite/repositories/gitolite-admin gitolite DENIED by fallthru
(or you mis-spelled the reponame)
fatal: The remote end hung up unexpectedly

我正在尝试从 yasin @ vonneumann 帐户克隆。我将此用户RSA公钥上传到 debian 服务器,将其重命名为gitolite.pub并运行gitolite setup -pk gitolite.pub,没有任何消息或错误。然后在 yasin @ vonneumann 主持人我在~/.ssh/config创建了一个文件,内容如下:

host debian
     user gitolite
     hostname debian
     identityfile ~/.ssh/gitolite

(我还将id_rsa复制为gitolite vonneumann

我发现this question类似,但答案对我不起作用。

感谢任何帮助,谢谢。

1 个答案:

答案 0 :(得分:5)

如果您有~/.ssh/config个文件,则需要使用 scp-like syntax 作为您的ssh网址:

git clone debian:gitolite-admin.git

使用如下配置:

host debian
  user gitolite
  hostname debian
  identityfile ~/.ssh/gitolite
  port 2222

并且您不应该指定回购的完整路径。