GitHub无法访问、443 Operation timed out的解决办法

问题

git push 出现:

fatal: unable to access 'xxx': Failed to connect to github.com port 443: Timed out

解决办法:

配置 hosts。
如下:

# 以下配置是解决 github 无法访问的问题。ip 来自 https://ipaddress.com/
140.82.114.4 github.com 
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153  assets-cdn.github.com
185.199.109.153  assets-cdn.github.com
185.199.110.153  assets-cdn.github.com
185.199.111.153  assets-cdn.github.com

其中,ip 来自 https://ipaddress.com/,在 https://ipaddress.com/ 网站中搜索域名.

  • github.com ( github.global.ssl.fastly.net类似)


    image.png
  • assets-cdn.github.com


    image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容