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

前端 未结 17 858
梦如初夏
梦如初夏 2020-12-05 14:50

I am getting issue while pushing code.

git push origin master

fatal: unable to access \'https://xxxxxxxxxx@bitbucket.org/xxxxxx/xxxxxx.git/\': 
Failed to co         


        
相关标签:
17条回答
  • 2020-12-05 15:14

    just add your proxy setting via command prompt :

    set HTTPS_PROXY=http://user:pass@yourProxy:8080

    0 讨论(0)
  • 2020-12-05 15:15

    I have removed 104.192.143.2 bitbucket.org from this path /etc/hosts. It start working.

    Edit: I again faced error of Failed to connect to bitbucket.org port 443: Network is unreachable.

    I added new ip 18.205.93.0 bitbucket.org and it is working perfectly. You can find ip simply typing this command ping -c10 bitbucket.org.

    Referance: For more information visit this link

    0 讨论(0)
  • 2020-12-05 15:16

    I got this resolved. One of the reasons it happens is due to your system being on proxy network. In that case you have to run below command :

    $ git config --global http.proxy http://username:password@proxy:port

    where, username : your system userID| password : system password | proxy : Ip address of the proxy you are using | port : Of that proxy|

    This was hapenning due to network limitation of my organization network.

    0 讨论(0)
  • 2020-12-05 15:19

    For windows open your command prompt and do:

    1. ping -n 10 bitbucket.org
    2. tracert bitbucket.org

    This will definitely gone a solve it. It works on mine.

    0 讨论(0)
  • 2020-12-05 15:22

    Just add an entry to your ~/.ssh/config as follows:

    Host bitbucket.org
      AddressFamily inet
    
    0 讨论(0)
提交回复
热议问题