Git clone not working - error 443

I work from home and try to clone a repo from Github and get the following error:

git clone https://github.com/account/repo.git 

Also tried

 git clone git://github.com/account/repo.git Error: Failed connect to github.com:443; No error while accessing https://github.com/account/repo/info/refs?service=git-upload-pac fatal: HTTP request failed 

I even tried using SSH, and this is what I get:

ssh: connect to github.com host port 22: invalid file number: it may not be read from the remote repository.

I was just able to clone it on my laptop, so I know that I have the correct permissions, I just need help trying to figure out why this is happening on my desktop, and it seems like all the other suggestions don't seem to work.

  • I do not use a proxy server.
  • I cannot use other repositories that already exist.

EDIT Well, I executed the proposed command, here are the results:

 $ ssh -i ~/.ssh/id_rsa -vvv git@github.com OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug2: ssh_connect: needpriv 0 debug1: Connecting to github.com [204.232.175.90] port 22. debug1: connect to address 204.232.175.90 port 22: Not owner ssh: connect to host github.com port 22: Bad file number 

Any suggestions?

+8
git github
source share
3 answers

I know that this can be done at all, but I decided that I want to answer this question, so here is what I did, and now it works correctly:

  • Remote ALL git clients through windows (I had a couple for testing)
  • Installed basic git bash from git
  • Turned off the smart screen and provided a firewall and protector (they were)

Tried again, and now it works. My best guess: somewhere there was an incorrect configuration - probably the wrong key (I don’t know how this has happened since I updated it). Anyway, it works. This is probably a nuclear option, but I hope this helps someone else who comes across this.

+3
source share

I can resolve error 443 by running the following command:

 git config --global http.proxy <proxyname:port> 
+3
source share

This usually means that your network is protected by a proxy server. To configure git to use a proxy, use the following command:

 git config --global http.proxy <http[s]://userName:password@proxyaddress:port> 

If the proxy server does not have a username and password, use this command

 git config --global http.proxy <proxyaddress:port> 
+3
source share

All Articles