使用部分✈️节点代理GitHub时会出现以下问题

1
2
3
4
5
6
7
Cloning into '******'...
kex_exchange_identification: Connection closed by remote host
Connection closed by 198.18.1.55 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决方法1(推荐):

改成通过443端口git clone就没问题了
ssh配置需要进行一下修改

修改~/.ssh/config,添加以下内容即可

1
2
3
4
Host github.com
Hostname ssh.github.com
Port 443
User git

解决方法2:

1
- DST-PORT,22,DIRECT

不代理22端口的流量,但这样会导致git走直连,速度比较慢

参考链接:

https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port