Failed to connect to github.com port 443: Connection refused
时间: 2023-09-20 22:03:16 浏览: 197
回答: 当出现"Failed to connect to github.com port 443: Connection refused"错误时,可能有几种解决方法。首先,可以尝试关闭代理,因为代理工具可能会导致连接问题。可以尝试重置或取消代理设置来解决问题。\[1\]
另外,还可以通过修改hosts文件来解决该问题。可以使用IP查询工具来获取GitHub最新的真实地址,并将其添加到hosts文件中。这样可以确保连接到正确的GitHub地址。\[2\]
此外,如果出现"gnutls_handshake() failed: Error in the pull function"错误,可以尝试将地址中的"https"改为"git"。如果在git clone子模块时遇到此问题,可以打开.gitmodules文件,并将submodule中的url进行相应的修改。\[2\]
最后,如果电脑开启了代理,例如翻墙软件等,也可能导致连接问题。可以尝试取消全局代理来解决该问题。可以使用以下命令取消全局代理设置:git config --global --unset http.proxy和git config --global --unset https.proxy。\[3\]
#### 引用[.reference_title]
- *1* [Failed to connect to github.com port 443: Connection refused问题解决](https://blog.csdn.net/weixin_44442186/article/details/124979085)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ubuntu18.04 git clone:Failed to connect to github.com port 443: Connection refused](https://blog.csdn.net/qq_38204686/article/details/123444765)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [github 报错 Failed to connect to github.com port 443:connection timed out(最全解决办法)](https://blog.csdn.net/qq_49244747/article/details/131457129)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文