kex_exchange_identification: Connection closed by remote host Connection closed by 140.82.121.3 port

我在上传项目至远程仓库的时候遇到这样的问题

$ git push -u origin master
kex_exchange_identification: Connection closed by remote host
Connection closed by 140.82.121.3 port 22
fatal: Could not read from remote repository.

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

如图
在这里插入图片描述
翻译过来是

远程主机关闭的连接
连接关闭140.82.121.3端口22
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。

我一想应该是端口出现了问题,于是我解除了端口占用为22的进程,当我再次运行的时候还是出现了这个问题。

然后我又上stackoverflow上查了一下,终于找到了适合自己的解决办法。
在这里插入图片描述
随之我就关闭了我的VPN,就上传成功了。
在这里插入图片描述

还有其他的多个解决方案如:https://stackoverflow.com/questions/10127818/ssh-exchange-identification-connection-closed-by-remote-host-under-git-bash,根据问题具有针对性的寻找解决办法,嘿嘿

https://blog.csdn.net/hanhanwanghaha欢迎关注这个超级无敌可爱的人鸭,有什么问题留言私信皆可,看见必回!
创作不易,如有转载,请注明出处

猜你喜欢

转载自blog.csdn.net/hanhanwanghaha/article/details/113389088