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

By Hardik Savani November 5, 2023 Category : Git 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...

Tags :
Shares