Failed to connect to github.com port 443 after 21111 ms: Timed out
时间: 2023-09-20 21:03:24 浏览: 208
回答: 当出现"Failed to connect to github.com port 443 after 21111 ms: Timed out"错误时,可能是因为无法连接到GitHub的443端口导致的超时。解决此问题的方法有两种。第一种是配置http代理,可以在git的配置文件中添加代理配置。在Windows平台上,git默认不使用系统代理,所以即使连接了代理或者打开了代理***第二种方法是配置SSH代理,可以在SSH配置文件中添加代理配置。一般情况下,SSH配置文件位于~/.ssh/config。可以在该文件中添加类似以下的配置: Host github.com *.github.com User git Port 22 IdentityFile "~\.ssh\id_rsa" # SOCKS代理 ProxyCommand nc -v -x 172.16.100.211:808 %h %p # HTTPS代理 ProxyCommand socat - PROXY:172.16.100.211:%h:%p,proxyport=808 [1][2][3<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [git 报错Failed to connect to github.com port 443 after 21224 ms: Timed out 解决办法](https://blog.csdn.net/weixin_43662553/article/details/127831707)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文