tan9p
V2EX  ›  GitHub

github 提示 kex_exchange_identification,是设置原因,还是墙的原因?

  •  
  •   tan9p · Dec 20, 2022 · 2934 views
    This topic created in 1238 days ago, the information mentioned may be changed or developed.

    对 github 用 git pull push 报错,用ssh -T [email protected] 测试联通情况时,会报:kex_exchange_identification: Connection closed by remote host 的错误,请问这是外部网络的原因,还是本地配置哪有问题?

    奇怪的是,不是一直连不上,有时候有能连上,但成功概率非常低。

    另外,我在本机上针对两个不同的 github 账号生成了不同的 key ,通过 config 加以区分,是不是这个原因引起的?

    8 replies    2023-04-12 18:02:43 +08:00
    chenset
        2
    chenset  
       Dec 20, 2022
    “Connection closed by remote host”

    0. 先确保自己到 github.com 的连通性?
    1. 检查下是不是优先 ipv6 了
    2. 有些机场 vps ip 被 github 拒了
    BaseException
        3
    BaseException  
       Dec 21, 2022 via iPhone
    100%是你🕸️的问题。你代理也有可能有问题。另外使用 443 省心省事。

    https://hellodk.cn/post/975
    IvanLi127
        4
    IvanLi127  
       Dec 21, 2022 via Android
    网络问题。 开代理了么?有些机场节点直接阻断 22 端口,最讨厌这种机场了。
    tan9p
        5
    tan9p  
    OP
       Dec 21, 2022
    谢谢楼上各位。
    to Z1on:我试着用了 443 端口,还是登不上。
    to chenset:网页有时候也连不上,但连上的频率比 ssh 的高,开代理和不开代理都不行。不知道怎么检查是不是优先 ipv6 。
    to BaseException: 通过博文弄好了,感谢:)
    to IvanLi127: 确实,开代理报的错和不开代理不一样。
    wdssmq
        6
    wdssmq  
       Dec 21, 2022
    521xueweihan/GitHub520: 让你“爱”上 GitHub ,解决访问时图裂、加载慢的问题。(无需安装)
    https://github.com/521xueweihan/GitHub520#%E4%BA%8C%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95

    试下改 host 吧
    Slurp
        7
    Slurp  
       Dec 21, 2022 via iPad
    🤡 看吧正常人都觉得是网的问题,就某个小丑觉得是 SSH 只能克隆有写权限的仓库。https://github.com/kifuan/helang/issues/271 @FrankHB

    🤣 有人说了只要绑了 SSH ,公开仓库都能随便 clone ,这人还开始觉得这是 GitHub 漏洞了。真是烂泥扶不上墙,鸭子只会嘴硬,硬把在别的地方瞎扯这一套搬到 Git 上来了,自己也就是个连 Git 都不会用还到别人 issue 拉屎的民科罢了。
    codechaser
        8
    codechaser  
       Apr 12, 2023
    我也碰到这个了,小概率 clone 成功,大概率报这个错,开了代理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3546 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 86ms · UTC 10:51 · PVG 18:51 · LAX 03:51 · JFK 06:51
    ♥ Do have faith in what you're doing.