SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

后端 未结 14 1255
傲寒
傲寒 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:20

    I had this similar error when using wget ..., and after much unfruitful searching in the Internet, I discovered that it was happening when hostnames were being resolved to IPv6 addresses. I discovered this by comparing the outputs of wget ... in two machines, one was resolving to IPv4 and it worked there, the other was resolving to IPv6 and it failed there.

    So the solution in my case was to run networksetup -setv6off Wi-Fi on macOS High Sierra 10.13.6. (I discovered this command in this page).

    Hope this helps you.

提交回复
热议问题