相关疑难解决方法(0)

git remote添加其他SSH端口

在Git中,当主机使用不同的SSH端口时,如何添加远程源服务器?

git remote add origin ssh://user@host/srv/git/example
Run Code Online (Sandbox Code Playgroud)

git ssh port

321
推荐指数
7
解决办法
28万
查看次数

尝试连接到 git 上的远程存储库时出现“ssh_exchange_identification: read: Connection reset by peer”错误

我对 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.
Run Code Online (Sandbox Code Playgroud)

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

当我输入这个命令时:“ssh -T git@github.com”,我得到:

ssh_exchange_identification: read: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)

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

git github

11
推荐指数
3
解决办法
2万
查看次数

标签 统计

git ×2

github ×1

port ×1

ssh ×1