sw0*_*428 5 ssh github ssh-keys
这个问题之前已经被问过,我似乎有与这里相同的问题,但没有明确的答案/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 type -1
debug1: identity file /c/Users/x/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/x/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/x/.ssh/id_ed25519 type 3
debug1: identity file /c/Users/x/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/x/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/x/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/x/.ssh/id_xmss type -1
debug1: identity file /c/Users/x/.ssh/id_xmss-cert type -1
debug1: identity file /c/Users/x/.ssh/id_dsa type -1
debug1: identity file /c/Users/x/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2
kex_exchange_identification: read: Software caused connection abort
banner exchange: Connection to 140.82.121.4 port 22: Software caused connection abort
Run Code Online (Sandbox Code Playgroud)
谢谢阅读 :)
“软件导致连接中止”的确切含义是:您的系统上有某些软件导致您的连接中止。这可能是防火墙、防病毒软件、代理、监控软件或您计算机上的任何类似软件。这不是 GitHub 的问题,GitHub 也无法解决它。
Git 开发人员建议仅使用 Windows 上的默认防病毒软件和防火墙(即 Windows Defender 和 Windows 防火墙),而不使用任何其他代理。如果您的计算机上有此类软件(默认的防病毒软件和防火墙除外),您应该将其卸载并重新启动,问题可能会消失。
请注意,我们不确定是什么软件正在执行此操作,只知道它是您计算机上的某些软件。