美文网首页
【macOS技巧】Mac终端走代理 SSL_connect: S

【macOS技巧】Mac终端走代理 SSL_connect: S

作者: CoderSimonWong | 来源:发表于2021-04-07 00:10 被阅读0次

    告别国内 SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 等问题

    找到适合自己的代理软件,终端curl ip.gs,发现代理软件没把终端翻出去

    先看公网IP

    curl ip.gs

    会显示出IP,比如我的是113.68.185.xxx

    然后终端开始代理

    export https_proxy=http://{proxyAddress}:{port} http_proxy=http://{proxyAddress}:{port} all_proxy=socks5://{proxyAddress}:{port}

    通常

    proxyAddress是127.0.0.1

    port是根据你使用的软件的不同而不同,要自己找找,我的是7890

    所以我执行的是

    export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

    再看公网IP

    curl ip.gs

    变成了103.138.53.xxx

    至此,代理成功

    重启即重置

    相关文章

      网友评论

          本文标题:【macOS技巧】Mac终端走代理 SSL_connect: S

          本文链接:https://www.haomeiwen.com/subject/gwkykltx.html