SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

后端 未结 14 1112
傲寒
傲寒 2020-11-30 00:08

Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a git clone like git clone github.com/xxx.git failed it print:

相关标签:
14条回答
  • 2020-11-30 00:34

    Since you're using LibreSSL, try re-installing curl with OpenSSL instead of Secure Transport.


    Latest Brew

    All options have been removed from the curl formula, so now you need to install via:

    brew install curl-openssl
    

    Older Brew

    Install curl with --with-openssl:

    brew reinstall curl --with-openssl
    

    Note: If above won't work, check brew options curl to display install options specific to formula.


    Here are few other suggestions:

    • Make sure you're not using http_proxy/https_proxy.
    • Use -v to curl for more verbose output.
    • Try using BSD curl at /usr/bin/curl, run which -a curl to list them all.
    • Make sure you haven't accidentally blocked curl in your firewall (such as Little Snitch).
    • Alternatively use wget.
    0 讨论(0)
  • 2020-11-30 00:39

    1) Tried creating a new branch and pushing. Worked for a couple of times but faced the same error again.

    2)Just ran these two statements before pushing the code. All I did was to cancel the proxy.

    $ git config --global --unset http.proxy
    $ git config --global --unset https.proxy
    

    3) Faced the issue again after couple of weeks. I have updated homebrew and it got fixed

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