问题

在git clone 时出现:Failed to connect to github.com port 443: Operation timed out错误

解决

主要是在/etc/hosts里把github.com域名与IP绑定。具体配置为:

140.82.113.3 githuh.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地址可以通过github网站进行查询:
1、https://ipaddress.com/website/github.com
github.com ip
2、https://ipaddress.com/website/github.global.ssl.fastly.net#ipinfo
在这里插入图片描述
3、https://ipaddress.com/website/assets-cds.github.com
在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐