我正在设置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
as gitolite
at 冯诺伊曼)
I found 这个问题相似,但答案对我不起作用。
任何帮助表示赞赏,谢谢。
如果你有一个~/.ssh/config
文件,您需要使用类似 scp 的语法对于你的 ssh 网址:
git clone debian:gitolite-admin.git
使用如下配置:
host debian
user gitolite
hostname debian
identityfile ~/.ssh/gitolite
port 2222
并且您不应该指定存储库的完整路径。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)