国内VPS无法访问GitHub

发布于 2023-10-27  58 次阅读


AI 摘要

GitHub通过修改host文件进行国内VPS的访问限制。在host文件中添加GitHub的IP地址映射可解决该问题。

修改host文件 /etc/hosts,GitHub


  #Github Hosts Start  
  

  #Project Address: https://github.com/maxiaof/github-hosts
  

  #Update URL: https://raw.githubusercontent.com/maxiaof/github-hosts/master/hosts
  

  140.82.114.26 alive.github.com
  

  140.82.113.25 live.github.com
  

  185.199.108.154 github.githubassets.com
  

  140.82.113.21 central.github.com
  

  185.199.108.133 desktop.githubusercontent.com
  

  185.199.111.153 assets-cdn.github.com
  

  185.199.110.133 camo.githubusercontent.com
  

  185.199.111.133 github.map.fastly.net
  

  146.75.121.194 github.global.ssl.fastly.net
  

  140.82.121.3 gist.github.com
  

  185.199.108.153 github.io
  

  140.82.121.3 github.com
  

  192.0.66.2 github.blog
  

  140.82.121.5 api.github.com
  

  185.199.110.133 raw.githubusercontent.com
  

  185.199.108.133 user-images.githubusercontent.com
  

  185.199.109.133 favicons.githubusercontent.com
  

  185.199.109.133 avatars5.githubusercontent.com
  

  185.199.110.133 avatars4.githubusercontent.com
  

  185.199.110.133 avatars3.githubusercontent.com
  

  185.199.108.133 avatars2.githubusercontent.com
  

  185.199.111.133 avatars1.githubusercontent.com
  

  185.199.111.133 avatars0.githubusercontent.com
  

  185.199.108.133 avatars.githubusercontent.com
  

  140.82.121.9 codeload.github.com
  

  16.182.97.249 github-cloud.s3.amazonaws.com
  

  3.5.21.251 github-com.s3.amazonaws.com
  

  54.231.203.33 github-production-release-asset-2e65be.s3.amazonaws.com
  

  3.5.29.93 github-production-user-asset-6210df.s3.amazonaws.com
  

  54.231.136.121 github-production-repository-file-5c1aeb.s3.amazonaws.com
  

  185.199.110.153 githubstatus.com
  

  140.82.114.18 github.community
  

  51.137.3.17 github.dev
  

  140.82.114.22 collector.github.com
  

  13.107.42.16 pipelines.actions.githubusercontent.com
  

  185.199.111.133 media.githubusercontent.com
  

  185.199.111.133 cloud.githubusercontent.com
  

  185.199.109.133 objects.githubusercontent.com
  

  #Github Hosts End
  

  • alipay_img
  • wechat_img
公众号:享生活爱羊毛
最后更新于 2024-12-12