Friday 19 August 2016

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

Hi Everybody,

Today we will discuss about a little but very critical issue i faced with bitbucket.


When i was working on my project repository i found error "fatal: unable to access 'myrepo' Failed to connect to bitbucket.org port 443: Network is unreachable" few day ago. when i going to just git pull command i found error like as bellow:

fatal: unable to access 'https://hardik@bitbucket.org/hardik/setup_backend.git/':
Failed to connect to bitbucket.org port 443: Network is unreachable

But i try to solve it but nothing, at last i found solution i was use HTTPS for clone repo. But i need use SSH for git repo. So i changed remote HTTPS into ssh like as bellow:

git remote -v
git remote remove origin
git remote add origin git@bitbucket.org:hardik/setup_backend.git

And then i try to push and pull, it works, you can also try.

Thanks.