[英]Cannot clone git repo from ubuntu server with TortoiseGit
我在git clone
从运行gitolite的 ubuntu服务器上git clone
一个仓库时遇到了一些问题。
首先,我从想要从服务器克隆存储库的开发人员那里获得了公共密钥。 这是用腻子制成的rsa钥匙。 因此,我执行以下操作以将其从腻子样式解析为openssh格式:
ssh-keygen -i -f /tmp/ssh2/YourName.pub > /tmp/openssh/YourName.pub
(摘自http://gitolite.googlecode.com/git/doc/ssh-troubleshooting.mkd?r=d3a663d03f1027f909732d55d0519bdd84edb62c )
并将公用密钥以及配置文件中的新条目和新用户上传到gitolite-admin repo。
到现在为止还挺好。
开发人员正在使用****和腻子连接到服务器,该服务器在非标准端口上运行git ,并且不断重复出现相同的错误:
Cloning into 'D:\path\to\dirctory'...
error: Recv failure: Connection was reset while accessing http://sub.domain.com/info/refs
fatal: HTTP request failed
git did not exit cleanly (exit code 128)
有人可以给我一些关于这个问题的建议吗?
编辑:
同时,我们设法通过ssh://
协议而不是git://
来解决它,从而通过git clone
存储库,因此这似乎不是rsa_public.key之类的问题。
服务器上的iptables通过端口接受git的连接,但是它继续给出上述错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.