Github Clone Connection closed by remote host

今天遇到问题:

1
2
3
$ ssh -T git@github.com

kex_exchange_identification: Connection closed by remote host

遇到这个问题一般为 22 被梯子警用了,解决办法为:

1
2
3
4
5
vi ~/.ssh/config
Host github.com
    HostName ssh.github.com
    User git
    Port 443

参考材料:

https://idreamshen.github.io/posts/github-connection-closed/

Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up