Git Pull Failed
kex_exchange_identification: write: Connection reset by peer Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
git pull代码时,报错:
Git Pull Failed
kex_exchange_identification: write: Connection reset by peer Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

解决方案:
这个错误一般是由ssh出错导致 切换为https地址的即可
1、从ssh切换至https
git remote set-url origin(远程仓库名称) https://email/username/ProjectName.git
2、查看当前是ssh还是https
git remote -v
即可解决。
本文介绍了一种常见的Git操作错误“Connection reset by peer”,通常发生在尝试从远程仓库拉取代码时。错误提示表明SSH连接存在问题,解决方案建议将SSH地址更改为HTTPS地址,并提供了具体的修改命令。

被折叠的 条评论
为什么被折叠?



