Failed to connect to github.com port 443: Connection refused问题解决

解决办法:

1.找到github的ip地址:查找链接

 

2.找到本地的hosts文件。我的hosts文件路劲为:C:\Windows\System32\drivers\etc

3.在hosts文件最后添加(一般需要管理员权限):140.82.114.4 github.com

4.现在上传试试。git push origin master

 

今天使用Git LFS上传大文件,结果最后在git push orginal master环节出现**443: Connection refused**这个错误。搞了一个晚上,总算采用上述办法解决了。

因为我是使用了代理的,所以猜想是不是代理的问题,因此采用了以下办法,但是最后以失败告终:

git config --global --unset http.proxy
git config --global --unset https.proxy

  

 

posted @ 2023-03-18 21:08  九叶草  阅读(688)  评论(0编辑  收藏  举报