github 无法push pull fetch 的问题

gitpush的时候出现

ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

github 无法 push和clone
以为是ssh出了问题,重新生成ssh文件还是不管用
上网搜索得知通过如下命令发现 ssh访问的github ip 地址被劫持了
修改hosts文件强制修改访问github.com的IP地址为
192.30.253.112 github.com
就OK了

猜你喜欢

转载自blog.csdn.net/kwinway/article/details/80543108
今日推荐