0

I am trying to clone a git repository with URL: http://user@serverIP:port/RepositoryName on a Linux server and this is the output:

Cloning into 'RepositoryName'...

fatal: unable to access 'http://user@serverIP:port/RepositoryName/': couldn't connect to host

The same error also appears when I try to pull from the repository, while it worked properly and cloned the repository on my windows machine.

Does anyone have an idea about the problem?

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Randa ElBehery
  • 167
  • 2
  • 17
  • 1
    do you have a connection to the server? Have you pinged it? – godot Mar 18 '19 at 13:16
  • 1
    You really running git on http for your clients? – Klaus Mar 18 '19 at 13:17
  • 2
    Do you have a proxy set on your Windows machine ? – Arnaud Christ Mar 18 '19 at 13:18
  • @godot yes i did and it pinged successfully – Randa ElBehery Mar 18 '19 at 13:23
  • When you write `serverIP` do you mean an IP address (i.e. dotted numbers) or do you mean a hostname? And if you do mean a hostname, perhaps you need to specify a fully qualified domain name. Another thing to try is cutting and pasting into your browser on the same PC and see if it works there. If not, it's not a git problem _per se_. – Mort Mar 18 '19 at 18:23

0 Answers0