You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Win10环境下SSH方式无法操作部分GitHub仓库的问题求助

Win10环境下SSH方式无法操作部分GitHub仓库的问题求助

各位好,我现在遇到一个挺头疼的问题:只有部分GitHub仓库没法通过SSH进行push和pull操作,不是所有仓库都这样。

我已经试过几种常见的解决方案,但都没起作用:

  • 重新执行git init初始化仓库
  • 重启电脑
  • 设置git config http.sslVerify "false"

下面是我执行ssh -vT git@github.com的完整输出:

debug1: Connecting to github.com [140.82.121.4] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\Barzi/.ssh/id_rsa type 0
debug1: identity file C:\\Users\\Barzi/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_ed25519 type 3
debug1: identity file C:\\Users\\Barzi/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\Barzi/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
kex_exchange_identification: read: Connection timed out

我自己分析了下日志,看到id_ed25519那一行的类型不是-1,按我的理解这应该意味着身份验证已经成功了,但最后还是出现了连接超时的错误。实在搞不清问题出在哪了,有没有大佬能给点下一步的排查方向或者解决建议?万分感谢!

备注:内容来源于stack exchange,提问作者Barzi2001

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 15:49:36