在Git中,当主机使用不同的SSH端口时,如何添加远程源服务器?
git remote add origin ssh://user@host/srv/git/example
Run Code Online (Sandbox Code Playgroud) 我对 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 密钥或任何东西中的任何设置,所以我不知道它为什么突然停止工作。可能是什么问题呢?