qingjiang
V2EX  ›  GitHub

github 通过 ssh 拉取、推送都显示解决连接,大家是如何解决的

  •  
  •   qingjiang · Dec 13, 2023 · 2691 views
    This topic created in 1060 days ago, the information mentioned may be changed or developed.
    Cloning into 'tg_bing_dalle'...
    kex_exchange_identification: Connection closed by remote host
    Connection closed by 20.205.243.166 port 22
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    
    17 replies  •  2023-12-13 23:00:32 +08:00
    horizon
    horizon
    Dec 13, 2023
    1
    export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
    stinkytofu
    stinkytofu
    Dec 13, 2023❤️1
    2
    这片土地上的程序员, 想要愉快的编程, 首先就得精通翻墙
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    3
    @stinkytofu 节点一直开着的
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    4
    @horizon 我试试
    jim9606
    jim9606
    Dec 13, 2023
    5
    看上去好像是你用了 ssh 客户端不支持服务器允许的密码套件?
    例如 ssh 版本过旧。
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    6
    @horizon 这个在哪配置,小蓝猫中
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    7
    @jim9606 git version 2.39.2.windows.1
    yin1999
    yin1999
    Dec 13, 2023
    8
    1 楼的那个方法应该对 ssh 协议没用,你可以参考一下下面的这个帖子,写得很详细了 /t/843383
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    9
    @yin1999 好我看看
    yuanix
    yuanix
    Dec 13, 2023
    10
    这题我会,可能是 22 端口被阻断了,让 ssh 协议走 443 端口就好了

    在你的 ssh 配置里面加上:

    ```
    Host github.com
    HostName ssh.github.com
    Port 443
    User git
    ```
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    11
    现在是这样了:

    ```
    kex_exchange_identification: Connection closed by remote host
    Connection closed by UNKNOWN port 65535
    fatal: Could not read from remote repository.

    ```
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    12
    @yuanix 我试试
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    13
    @qingjiang 厉害了,可以拉取了,使用

    Host keep.github.com
    HostName ssh.github.com
    Port 443
    User keep


    重点是这里
    ssh.github.com
    443
    nagisaushio
    nagisaushio
    Dec 13, 2023 via Android
    14
    proxychains
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    15
    @yuanix

    厉害了,可以拉取了,使用
    ```
    Host keep.github.com
    HostName ssh.github.com
    Port 443
    User keep
    ```

    重点是这里
    ssh.github.com
    443
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    16
    @nagisaushio 又学到了
    qingjiang
    qingjiang
    OP
    Dec 13, 2023
    17
    谢谢大家的帮忙,解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1524 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:05 · PVG 18:05 · LAX 02:05 · JFK 05:05
    ♥ Do have faith in what you're doing.