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

148 天前
 qingjiang
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.

889 次点击
所在节点    GitHub
17 条回复
horizon
148 天前
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
148 天前
这片土地上的程序员, 想要愉快的编程, 首先就得精通翻墙
qingjiang
148 天前
@stinkytofu 节点一直开着的
qingjiang
148 天前
@horizon 我试试
jim9606
148 天前
看上去好像是你用了 ssh 客户端不支持服务器允许的密码套件?
例如 ssh 版本过旧。
qingjiang
148 天前
@horizon 这个在哪配置,小蓝猫中
qingjiang
148 天前
@jim9606 git version 2.39.2.windows.1
yin1999
148 天前
1 楼的那个方法应该对 ssh 协议没用,你可以参考一下下面的这个帖子,写得很详细了 /t/843383
qingjiang
148 天前
@yin1999 好我看看
yuanix
148 天前
这题我会,可能是 22 端口被阻断了,让 ssh 协议走 443 端口就好了

在你的 ssh 配置里面加上:

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

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

```
qingjiang
148 天前
@yuanix 我试试
qingjiang
148 天前
@qingjiang 厉害了,可以拉取了,使用

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


重点是这里
ssh.github.com
443
nagisaushio
148 天前
proxychains
qingjiang
148 天前
@yuanix

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

重点是这里
ssh.github.com
443
qingjiang
148 天前
@nagisaushio 又学到了
qingjiang
148 天前
谢谢大家的帮忙,解决了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1000159

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX