Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: unable to access : Failed to connect to bitbucket.org port 443: Connection timed out

Tags:

git

bitbucket

I have a problem with my git, when I pull or push to repository of bitbucket. I always get this error:

fatal: unable to access 'https://[email protected]/****/**': Failed to connect to bitbucket.org port 443: Connection timed out

I tried all solution but it can not resolved.

like image 892
naseeba c Avatar asked Dec 13 '22 15:12

naseeba c


1 Answers

UPDATE: 28-08-2020

This is Temp fix but at least working for me after bitbucket new IP changed

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 the terminal from any location :)

just add the below line in hosts file

18.205.93.0 bitbucket.org

For all 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(old IP whatever) bitbucket.org

with

18.205.93.0 bitbucket.org

Happy Coding!

like image 52
Abdul Hameed Avatar answered Dec 18 '22 00:12

Abdul Hameed