MAC终端下使用IDEA自带的Git拉取github项目,提示SSL_ERROR_SYSCALL in connection to XX
出处:https://www.cnblogs.com/life-of-coding/p/12822614.html
原因
https://stackoverflow.com/questions/48987512/ssl-connect-ssl-error-syscall-in-connection-to-github-com443
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.
解决方案
把ipv6禁用,“系统偏好设置”->“网络”->选择对应的网卡->“高级”->“配置ipv6”,选择适合自己的选项,本人选择的是仅本地连接。记得点击"应用"


当在MAC环境下使用IDEA的Git功能拉取GitHub项目时,如果遇到SSL_ERROR_SYSCALL错误,可能是因为系统尝试使用IPv6导致的。解决方法是禁用IPv6,具体操作为:进入"系统偏好设置"->"网络"->选择对应网卡->"高级"->"配置IPv6",选择"仅本地连接",然后点击"应用"。这通常能解决因IPv6解析问题引发的Git连接错误。
514

被折叠的 条评论
为什么被折叠?



