GitHub 443 Operation timed out的解决办法
原因
注意是443不是403错误,主要原因还是网络不通。什么取消全局代理这些都无法解决。
解决办法
-
要么使用全局代理
-
第二种方法手工设置github的host解析ip
-
首先取消代理(亲测无效)
git config --global https.proxy http://127.0.0.1:1080
git config --global http.proxy http://127.0.0.1:1080 -
获取ip
-
https://github.com.ipaddress.com/ 访问该网址得到ip, 在host中添加: xxx.xxx.xxx.xxx github.com
-
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 访问该网址得到ip, 在host中添加: xxx.xxx.xxx.xxx github.global.ssl.fastly.net
-
https://github.com.ipaddress.com/assets-cdn.github.com 访问该网址得到ip, 在host中添加:
xxx.xxx.xxx.xxx assets-cdn.github.com
xxx.xxx.xxx.xxx assets-cdn.github.com
xxx.xxx.xxx.xxx assets-cdn.github.com
xxx.xxx.xxx.xxx assets-cdn.github.com
-
sudo killall -HUP mDNSResponder;
-
现在可以正常访问了
-
-