2016-12-17 236 views
2

而试图拉或我的回购推无法推 - 无法连接到github.com 443端口:连接被拒绝

fatal: unable to access 'https://github.com/******/*****.git/': 
Failed to connect to github.com port 443: Connection refused. 

的问题是我收到此错误

  • 我没有使用任何代理
  • 它工作过一段时间,但通常它显示了这个错误

我使用Ubuntu 16。 04 LTS作为操作系统。

回答

1

我不知道它是否是正确的方式,但我通过在我的/ etc/hosts文件中保留以下IP地址来解决我的问题。

/etc/hosts中

  199.27.74.133         raw.github.com
199.27.78.133   raw.github.com
204.13.250.4        生.github.com
192.30.252.143 gist.github.com
4.36.66.178             gist.github.com
199.27.74.133     developer.github.com

+0

这似乎是同样的想法,一个我在我的答案呈现。 – VonC

+0

是的想法是相同的,但它不适用于推。 –

相关问题