我对 github 很陌生,大约两周前我开始使用它。一切都很完美,我能够从远程存储库中推送和拉取。然而,今天,当我尝试从中提取数据时,收到以下错误消息:
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 存储库的操作(推送、拉取、获取等)时,它都会返回相同的错误。
当我输入此命令时:“ssh -T[电子邮件受保护] /cdn-cgi/l/email-protection”,我刚刚得到:
ssh_exchange_identification: read: Connection reset by peer
我没有修改我的存储库或 SSH 密钥或任何其他内容中的任何设置,所以我不知道为什么它突然停止工作。可能是什么问题呢?
我最近遇到了类似的问题,我不确定它是否与我通过以下命令获取连接的用户完全相同。
ssh -T [电子邮件受保护] /cdn-cgi/l/email-protection
但是当我尝试将代码推送到远程存储库时,我遇到了同样的错误。
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
and 这对我有用。我希望只有在连接用户正确绑定的情况下这才有效。
尝试一下祝你好运..:)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)