今日本想进入自己的github下载自己的一个项目,结果报错,告诉我连接到github.com的443端口号失败,无法连接服务器。
Bash
$ git clone https://github.com/SkyCreator/goproj.git
Cloning into 'goproj'...
fatal: unable to access 'https://github.com/SkyCreator/goproj.git/': Failed to connect to github.com port 443 after 21076 ms: Couldn't connect to server
网上搜索解决方法,解决使用git时遇到Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server_git couldn’t connect to server-优快云博客,这一篇解决了我的问题。
为了防止该网址未来可能会发生意外(比如博主删掉帖子或其它未知原因),导致无法访问。我将其中步骤实操一遍,记录下来,以备未来查询。
使用过VPN,发生报错
我是用过VPN上过Github的,可能导致了本机系统端口号和git的端口号不一致,因此无法访问。于是,我查看本机系统端口号。设置-&g