Sameer Shaikh Sameer Shaikh - 2 months ago 60
Git Question

Failed to connect to bitbucket.org port 443: No route to host

I am getting error as Failed to connect to bitbucket.org port 443: No route to host when i try to pull or push.
The same repositories are available to pull push outside our network.
What could be the problem as it was working properly.

Answer

I got same issue.

I tried to update git by ppa, Reset .gitconfig,i checked github repo is getting clone but not bitbucket, i unset http and https proxy, restarted my network services(type in terminal - 'my network services'), changed the network that my laptop was connected. But none of this work for me.

i got fixed by adding below line to hosts(/etc/hosts) file

104.192.143.2 bitbucket.org

Another solutions i didn't tried are

using proxy for cloning git, Connecting to Bitbucket using ssh through proxy.

This solution will also work for the below error:

Failed to connect to bitbucket.org port 443: Network is unreachable

Comments