我是第一次设置gitolite。我正在按照此说明进行操作。
当我 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 )
我发现这个问题很相似,但答案对我不起作用。
任何帮助表示赞赏,谢谢。