Git remote clone failed, but succeed on local machine

714 Views Asked by At

I have setup GitStack on remote server. Now I want to clone the repository to local machine, but it failed.

Server Environment:
GitStack-2.2.3,
Git-1.7.10,
Windows 7
Client Environment:
Git-1.7.10
Windows 7

Step 1: If I run the clone command directly on the server, it works,

$Git clone http://robin@localhost:8082/TestGit.git

Step 2: If I run the same command on a client machine. The clone will fail with the following error message:

Cloning into 'TestGit'...  
error: Failed connect to `10.158.169.66:1080;` No error while accessing      `http://[email protected]:8082/TestGit.git/info/refs`  
fatal: HTTP request failed   

My troubleshooting process:
1. As I mentioned above, I have run the same command on server directly, it works.
2. I have checked the TCP port 1080 and 8082. Both of them are enabled. Both Inbound and Outbound rules have been added to firewall
3. The server is accessible since I can browse the repository on client machine through browser.

Question:
I don't know what's the root cause.

0

There are 0 best solutions below