使用git去克隆github上的项目出现 fatal: unable to access xxx : 连接超时 这个报错,并且ping不通
解决linux环境下无法ping通github,clone项目
我是ubuntu18.04环境,解决方法如下:
编辑 /etc/hosts
增加以下这一段更新ip地址
192.30.253.113 github.com
192.30.252.131 github.com
85.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com
解决linux环境下无法ping通github,clone项目
下面再尝试去ping和clone,可以发现成功了。
成功ping通,接下去就可以clone了
解决linux环境下无法ping通github,clone项目
clone通了
解决linux环境下无法ping通github,clone项目

相关文章:

  • 2021-12-07
  • 2021-04-10
  • 2021-08-27
  • 2021-07-14
  • 2021-05-02
  • 2021-08-11
  • 2021-12-27
  • 2021-11-17
猜你喜欢
  • 2021-07-12
  • 2021-06-13
  • 2021-07-07
  • 2022-12-23
  • 2021-09-14
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案