Unknown SSL protocol error in connection

后端 未结 16 1463
故里飘歌
故里飘歌 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:20

    I faced this issue while i was using version control in Android Studio 2.1.3, the scenario i faces was as follows :

    1- i opened the IDE and clicked on the "update / pull" icon (Ctrl+T)

    2- it did not ask for the Master password and it failed, gave me this error :

    Unknown SSL protocol error in connection to bitbucket.org:443
    

    3- i tried to fetch the repository (right click > git > repository > fetch)

    4- it asked me for the master password and i entered it

    5- it tried to fetch but it failed again and again and again

    6- i restarted Android studio

    7- i tried to fetch the repository (right click > git > repository > fetch)

    8- it asked me for the master password and i entered it

    9- now things are OK, every thing goes fine

    Conclusion :

    maybe Android Studio needs the Master password first before any git actions, else it will keep failing even if it asked for Master password later on, i don't know, this is the scenario that happened to me

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

    I get the same problem. With the last version of git and no proxy.

    I fixed it:

    • sign in the GitHub
    • enter the interface: "Personal settings", then click "SSH Keys" please confirm whether you have put the 'id_rsa.pub' that generated by the command
    • 'ssh-keygen -t rsa ' on windows into github --> GIT BASH
    • 'Add SSH key' and put the 'id_rsa.pub' into it.

    More info: create the key

    copy the key

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

    Setting the following git setting fixed this for me

    git config --global --add http.sslVersion tlsv1.0

    I'm guessing the corporate proxy server did not like the default encryption protocol.

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

    This error happen to me when push big amount of sources (Nearly 700Mb), then I try to push it partially and it was successfully pushed.

    0 讨论(0)
提交回复
热议问题