V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qingjiang
V2EX  ›  GitHub

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

  •  
  •   qingjiang · 136 天前 · 867 次点击
    这是一个创建于 136 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    2023-12-13 23:00:32 +08:00
    horizon
        1
    horizon  
       136 天前
    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
        2
    stinkytofu  
       136 天前   ❤️ 1
    这片土地上的程序员, 想要愉快的编程, 首先就得精通翻墙
    qingjiang
        3
    qingjiang  
    OP
       136 天前
    @stinkytofu 节点一直开着的
    qingjiang
        4
    qingjiang  
    OP
       136 天前
    @horizon 我试试
    jim9606
        5
    jim9606  
       136 天前
    看上去好像是你用了 ssh 客户端不支持服务器允许的密码套件?
    例如 ssh 版本过旧。
    qingjiang
        6
    qingjiang  
    OP
       136 天前
    @horizon 这个在哪配置,小蓝猫中
    qingjiang
        7
    qingjiang  
    OP
       136 天前
    @jim9606 git version 2.39.2.windows.1
    yin1999
        8
    yin1999  
       136 天前
    1 楼的那个方法应该对 ssh 协议没用,你可以参考一下下面的这个帖子,写得很详细了 /t/843383
    qingjiang
        9
    qingjiang  
    OP
       136 天前
    @yin1999 好我看看
    yuanix
        10
    yuanix  
       136 天前
    这题我会,可能是 22 端口被阻断了,让 ssh 协议走 443 端口就好了

    在你的 ssh 配置里面加上:

    ```
    Host github.com
    HostName ssh.github.com
    Port 443
    User git
    ```
    qingjiang
        11
    qingjiang  
    OP
       136 天前
    现在是这样了:

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

    ```
    qingjiang
        12
    qingjiang  
    OP
       136 天前
    @yuanix 我试试
    qingjiang
        13
    qingjiang  
    OP
       136 天前
    @qingjiang 厉害了,可以拉取了,使用

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


    重点是这里
    ssh.github.com
    443
    nagisaushio
        14
    nagisaushio  
       136 天前 via Android
    proxychains
    qingjiang
        15
    qingjiang  
    OP
       136 天前
    @yuanix

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

    重点是这里
    ssh.github.com
    443
    qingjiang
        16
    qingjiang  
    OP
       136 天前
    @nagisaushio 又学到了
    qingjiang
        17
    qingjiang  
    OP
       136 天前
    谢谢大家的帮忙,解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1324 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.