Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何解决 kex_exchange_identification: Connection closed by remote host 的问题 #81

Open
hawtim opened this issue Jul 1, 2023 · 0 comments

Comments

@hawtim
Copy link
Owner

hawtim commented Jul 1, 2023

背景

在路由器上挂了 shellclash 来做流量代理,日常开发涉及跟 github 的 pull/push 等操作都会提示我下面的信息。

image

后边在网上搜了一下,发现代理服务器(机场)会禁用 22 端口。

解决方案

先测试通过 https 端口的 ssh 是否可行,请运行以下命令:

$ ssh -T -p 443 git@ssh.github.com

如果 https 端口是通的,你会看到以下的信息:

image

通过 ssh 配置文件配置

请参考: https://docs.github.com/zh/authentication/troubleshooting-ssh/using-ssh-over-the-https-port#enabling-ssh-connections-over-https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant