简体   繁体   English

无法使用TortoiseGit从ubuntu服务器克隆git repo

[英]Cannot clone git repo from ubuntu server with TortoiseGit

I'm facing some problems while git clone a repo from my ubuntu server running gitolite . 我在git clone从运行gitolite的 ubuntu服务器上git clone一个仓库时遇到了一些问题。

First, I got a public key from the developer who wants to clone the repository from the server. 首先,我从想要从服务器克隆存储库的开发人员那里获得了公共密钥。 It was a rsa key created with putty . 这是用腻子制成的rsa钥匙。 So I did the following to parse it from the putty-style to openssh format with: 因此,我执行以下操作以将其从腻子样式解析为openssh格式:

ssh-keygen -i -f /tmp/ssh2/YourName.pub > /tmp/openssh/YourName.pub (taken from http://gitolite.googlecode.com/git/doc/ssh-troubleshooting.mkd?r=d3a663d03f1027f909732d55d0519bdd84edb62c ) ssh-keygen -i -f /tmp/ssh2/YourName.pub > /tmp/openssh/YourName.pub (摘自http://gitolite.googlecode.com/git/doc/ssh-troubleshooting.mkd?r=d3a663d03f1027f909732d55d0519bdd84edb62c

and uploaded the public key along with a new entry for the repo and the new user in the config file to gitolite-admin repo. 并将公用密钥以及配置文件中的新条目和新用户上传到gitolite-admin repo。

So far, so good. 到现在为止还挺好。

The developer is using **** along with putty to connect to the server, which is running git on a non-standard port and he keeps on getting the same error over and over again: 开发人员正在使用****和腻子连接到服务器,该服务器在非标准端口上运行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)

Could anyone give me some advice about this issue? 有人可以给我一些关于这个问题的建议吗?


EDIT: 编辑:

In the meantime, we managed to git clone the repository by addressing it with the ssh:// protocol instead of git:// , so it doesn't seem like it is a problem of the rsa_public.key or something like that. 同时,我们设法通过ssh://协议而不是git://来解决它,从而通过git clone存储库,因此这似乎不是rsa_public.key之类的问题。

The iptables on the server are accepting connections through the port for git, but it keeps on giving the above mentioned error. 服务器上的iptables通过端口接受git的连接,但是它继续给出上述错误。

The OP herom initially commented that the developer used git://git@remote.server.com:port/repo.git as an address. OP herom最初评论说,开发人员使用git://git@remote.server.com:port/repo.git作为地址。

I asked if there was any firewall issue, preventing the use of the git port ( 9418 ), but the OP mentioned: 我问是否有任何防火墙问题,阻止使用git端口( 9418 ),但是OP提到:

no, there shouldn't be a firewall issue as iptables is accepting traffic for the git port - the port is forwarded and appears to be another port when connecting from outside... 否,不应该有防火墙问题,因为iptables接受git端口的流量-该端口已转发,从外部连接时似乎是另一个端口...
Now, the developer cloned the repo through ssh:// (and even connecting to the ssh-port !) 现在,开发人员通过ssh:// (甚至连接到ssh-port !)克隆了仓库。

I note that the git port can sometime be blocked, as illustrated in this thread . 我注意到git端口有时会被阻塞,如该线程所示
If not on the client side, maybe on the server side. 如果不在客户端,则可能在服务器端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM