这个问题之前已经被问过,我似乎有与这里相同的问题,但没有明确的答案/sf/ask/5174451901/
我一直遵循我之前使用过的指南,并且我知道设置 SSH 密钥是准确的。回购确实存在,我已确保 public 已正确复制到 github 帐户设置,但当我尝试测试密钥或推送到回购时显示错误:
kex_exchange_identification: read: Software caused connection abort
banner exchange: Connection to [ip] port 22: Software caused connection abort
Run Code Online (Sandbox Code Playgroud)
我检查了github 系统状态和报告,看起来他们的一切都可以运行。我之前已经在这台机器上设置了 Git 并推送到多个存储库,但我必须重新安装,因为我重新安装了操作系统。
调试如下
$ ssh git@github.com -vT
OpenSSH_9.2p1, OpenSSL 1.1.1t 7 Feb 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [140.82.121.4] port 22.
debug1: Connection established.
debug1: identity file /c/Users/x/.ssh/id_rsa type -1
debug1: identity file /c/Users/x/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/x/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/x/.ssh/id_ecdsa-cert …Run Code Online (Sandbox Code Playgroud)