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了