有關終端Github無法訪問,connection timed out:443等問題
SSL_connect: Operation timed out in connection to github.com:443
-
對於瀏覽器上Github可以使用[梯子]等方式,但是在終端中訪問Github超時保443錯誤,網上為Git設置代理等等方式都不行,那么我們可以修改host文件。
-
打開
https://github.com.ipaddress.com/
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo
https://github.com.ipaddress.com/assets-cdn.github.com -
等鏈接,將其中的IP地址復制下來,然后打開host文件,我用的是mac,可以從finder中command shift G直接訪問/etc/host就可以了,沒有權限修改的需要添加權限,然后將復制的IP地址粘貼進去。如下圖
然后打開終端,運行
sudo killall -HUP mDNSResponder;say DNS cache has been flushed
- Problem solved!