我是第一次设置 乙醇钠矿 。我正在按照以下说明进行操作。
当我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其内容如下:
gitolite.pub
gitolite setup -pk gitolite.pub
~/.ssh/config
host debian user gitolite hostname debian identityfile ~/.ssh/gitolite
(I也被复制id_rsa作为gitolite在 vonneumann )
id_rsa
gitolite
任何帮助表示赞赏,谢谢。
如果有~/.ssh/config文件,则需要对ssh url 使用类似于scp的语法 :
git clone debian:gitolite-admin.git
使用如下配置:
host debian user gitolite hostname debian identityfile ~/.ssh/gitolite port 2222
并且您不应该指定回购的完整路径。