问题
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.
回答1:
I also 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 fixed it 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
回答2:
UPDATE: 28-08-2018
This is Temp fix but at least working for me after bitbucket new IP's
Note:- hosts file can be found in windows at C:\Windows\System32\drivers\etc and in Linux it exists at /etc/hosts. make sure you edit with admin rights i.e in windows open notepad as administrator and then open host file. In linux sudo gedit /etc/hosts from terminal from any location :)
for all new users or existing users who previously edited etc/hosts file and now stopped working just replace the old IP address of bitbucket with new one i.e in etc/hosts
REPLACE
104.192.143.3 bitbucket.org
TO
18.205.93.0 bitbucket.org
Thanks
回答3:
just restart your network connection. in ubuntu linux: sudo service network-manager restart. check if you're now connected to the internet by pinging some known websites like: ping yahoo.com or bitbucket.org
回答4:
I tried replacing the bitbucket.org with ip of server i.e 104.192.143.2 in the source url of repo , git@bitbucket.org:xyz/xyz.git to git@104.192.143.2:xyz/xyz.git And this worked while cloning repo on plesk server
来源:https://stackoverflow.com/questions/38480098/failed-to-connect-to-bitbucket-org-port-443-no-route-to-host