IDEA connects to github.com connection timeout

github.com connection timed out

Question 1: The connection timed out when accessing github.com, and the problem of IDEA connecting to github.com connection timed out Invalid authentication data. connect time out.

Question 2: The connection to github.com is normal, but the problem of IDEA connecting to github.com connection timeout is Invalid authentication data. connect time out.

one

1.1 The method is as follows:
Open C:\Windows\System32\drivers\etc\hosts, and add the following content at the end of the file:

# github
192.30.255.112  github.com git
185.31.16.184 github.global.ssl.fastly.net

Through this operation, access to the github webpage and IDEA connecting to github can be achieved.

two

2.1 The method is as follows:
File -> Setting -> Appearance... >System Setting -> HTTP Proxy Close the proxy.
insert image description here

three

3.1 Modify the host file:
Open C:\Windows\System32\drivers\etc\hosts, add the following content at the end of the file:

#github IP地址
199.232.69.194 github.global.ssl.fastly.net
140.82.113.3 github.com
140.82.112.4 www.github.com
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
185.199.108.153 documentcloud.github.com
185.199.109.153 documentcloud.github.com
185.199.110.153 documentcloud.github.com
185.199.111.153 documentcloud.github.com
140.82.114.3 gist.github.com
185.199.108.153 help.github.com
185.199.109.153 help.github.com
185.199.110.153 help.github.com
185.199.111.153 help.github.com
140.82.112.9 nodeload.github.com
199.232.68.133 raw.github.com
140.82.112.18 status.github.com
140.82.113.18 training.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
199.232.68.133 cloud.githubusercontent.com
140.82.113.6 api.github.com

3.2 Flush DNS
cmd command input: ipconfig /flushdns
insert image description here

3.3 Test github
cmd command input: ping github.com
insert image description here

3.4 Visit the github page successfully

3.4 IDEA connects to github successfully
1. Click on the git web page for verification
2. Token verification

Guess you like

Origin blog.csdn.net/weixin_45336946/article/details/124980775