Failed to connect to github.com port 443: Operation timed out

拉取github代码的时候提示
Failed to connect to github.com port 443: Operation timed out

解决方案:

修改hosts文件

进入 目录/etc/hosts
输入密码后注释掉以下几行


image.png

github

192.30.253.118 gist.github.comm

151.101.185.194 github.global.ssl.fastly.net

esc :wq保存。

再次尝试clone成功

如果修改hosts时提示无权限:


image.png

你可能感兴趣的:(Failed to connect to github.com port 443: Operation timed out)