git - "ssh_exchange_identification: read: Connection reset by peer"尝试连接到 git 上的远程存储库时出错

标签 git github

我对 github 很陌生,大约两周前我开始使用它。一切都很完美,我能够从远程存储库中推送和 pull 。然而,今天,当我试图从中 pull 出时,我收到了以下错误消息:

ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

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

事实上,当我尝试做任何连接到我的远程 github 存储库的事情时(推送、 pull 、获取等),它实际上给了我同样的错误。

当我输入这个命令时:“ssh -T git@github.com”,我得到:
ssh_exchange_identification: read: Connection reset by peer

我没有修改我的存储库或 SSH key 或任何东西中的任何设置,所以我不知道它为什么突然停止工作。可能是什么问题呢?

最佳答案

我最近遇到了类似的问题,我不确定它是否与我通过以下命令获得连接的用户完全相同。

ssh -T git@gitlab.com


但是当我尝试将代码推送到远程存储库时,我得到了同样的错误。
kex_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
在尝试了一些来自互联网的解决方案后没有成功,我只是尝试了git init它对我有用 .我希望这仅在连接用户已正确绑定(bind)时才有效。
试试看 祝你好运.. :)

关于git - "ssh_exchange_identification: read: Connection reset by peer"尝试连接到 git 上的远程存储库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54611871/

相关文章:

Git 将一个分支 rebase 到另一个分支之上

java - 如果我在两台不同的计算机上使用 GitHub,是否需要相同的 IDE?

git-archive 一个子目录 --

git - 如何在文件夹层次结构中将所有 git 内容向上移动一级?

git - 让 'git grep' 在 vi​​m 中有效工作

linux - GitHub 看不到的 jupyter notebooks

git - 无法在 Visual Studio 项目中规范化 Git 的行尾

javascript - 如何使用 Git 摆脱主分支中的 merge 注释?

github - 在多个存储库上重用 Github Actions 自托管运行器

python - 需要建议使用 python 脚本从 ssh 服务器获取 git 克隆工作