Search code examples
gitbitbucket

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


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.


Solution

  • Try upgrading git if you have an old version.

    Check your git version:

    $ git --version
    

    For Debian-based Linux distros: run the following to upgrade:

    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install git