Unknown SSL protocol error in connection

后端 未结 16 1464
故里飘歌
故里飘歌 2020-11-27 15:30

I want to push my commits to a Bitbucket repository but this error occurred:

Fatal: unable to access
\'https://myUsername@bitbucket.org/myUsername/myReposito         


        
相关标签:
16条回答
  • 2020-11-27 16:13

    having 2 computers,

    number one is my corporate lab-top connected via VPN to our corporate network. That is like being inside the company behind big firewalls and a bunch of routers, with folk, internal and external (even telecom) fiddling around on the network and the firewall, and to reach out, I have to provide credentials such as proxy user and password and even then, sometimes it works and sometimes not.

    i.e. I can reach out through the firewall using SVN JSVN MAVEN downlaods, ANT downloads, and I can use git clone http://git... repos.

    But I can not do git clone https://git... repo. I this latest case I get this error.

    The number two computer on-site with me is my little lab-top from home, nothing special, connected through WAN to the www and getting stuff down with all the mentioned tools above plus git clone https://git... repo works like a sniff without doing something special.

    Conclusion: Sitting behind a "somehow managed firewall" is often the reason for troubles. To figure that out, take your little unprotected lab-top and have a www connection from home and if it runs, don't waste the time with your security guys, they will work for weeks unless the know why it does not work in your case, and maybe you can share with a portable drive the cloned git repo.

    Josef - getting old with wasting time in such situations ;-)

    0 讨论(0)
  • 2020-11-27 16:14

    I had the same issue, tried all changing SSL settings that are provided here. If you are in the corporate network and ssh keys used in such tools like Gerrit. 1. Get your ssh key, 2. Visit Bitbucket and navigate to Profile >> Settings >> SSH Keys >> Add Key.

    After ssh key addition, try to push again.

    0 讨论(0)
  • 2020-11-27 16:15

    I use tortoiseGit. I had the same problem. Then in push settings I unchecked "autoload putty key", tried to push, then I checked it again, and pushed, and it worked. But seriously, I don't know why.

    0 讨论(0)
  • 2020-11-27 16:16

    I was getting that behind a corporate proxy.

    Solved by:

    git config http.sslVerify "false"

    0 讨论(0)
  • 2020-11-27 16:16

    I was able to solve it by running

    git config --list --show-origin
    

    and then seeing that I had a line:

    file:c:/Users/user/.gitconfig http.sslversion=sslv3

    I edited the file, c:/Users/user/.gitconfig, and deleted the line [http] and the line sslversion=sslv3 and that fixed it for me.

    0 讨论(0)
  • 2020-11-27 16:20

    In many cases it is linked to proxy problems. If so just config your git proxy

    git config --global http.proxy HOST:PORT
    
    0 讨论(0)
提交回复
热议问题