1 2 3 4

更改hosts文件解决 Git无法连接到github

问题描述

inmeditation@sunlizhao MINGW64 ~/Desktop/hexob(1)
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out

解决

初步判断本地dns无法解析

打开管理员用户 命令行窗口

修改文件

192.30.253.112 github.com
151.101.88.249 github.global.ssl.fastly.net

posted @ 2019-11-24 20:56  多走多看  阅读(3563)  评论(0编辑  收藏  举报