git push 时出现Connection closed by remote host
来源:互联网 发布:淘宝宝贝上传图片问题 编辑:程序博客网 时间:2024/05/17 22:55
回校后突然不能用git push到远程端.显示错误:
Connection closed by remote host
网上查询了很多方法 重启ssh之类的,无果
最后靠google才找到一个相似的问题:
https://www.v2ex.com/t/290545
用 ssh git@github.com -vT测试后发现:
这ip并不是github 的ip地址
产生原因 网络被中间人了
如果无法找到是被谁劫持了,可以通过改hos 添加:
192.30.253.112 github.com
博主产生的原因是之前在路由器装的vpn插件工作不正常了,导致github映射到了奇怪的ip.卸载后即可
0 0
- git push 时出现Connection closed by remote host
- git push 时出现Connection closed by remote host
- git clone时失败提示:Connection to bitbucket.org closed by remote host..00 KiB/s
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- 【转载】 ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host. Disconnected from remote host
- ssh_exchange_identification: Connection closed by remote host 问题的解决
- ssh问题:ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host...
- ssh问题:ssh_exchange_identification: Connection closed by remote host...
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- PCI设备的地址空间
- 对线程调度中Thread.sleep(0)的深入理解
- 设计模式之代理模式
- Java系列——abstract, interface比较分析
- Android开发中屏幕不同分辨率适配
- git push 时出现Connection closed by remote host
- OSX 升级PHP版本
- 用 Graphviz 可视化函数调用
- leetcode Reverse digits of an integer(经测试绝对正确)
- 加密解密 签名验签学习笔记
- IIS7下 【请求被中止: 未能创建 SSL/TLS 安全通道 】 解决方法
- RxJava初探
- k-means算法讲解
- VirtualBox RedHat 6.7 64位服务器yum+增强工具