IDEA连接github出现“Invalid authentication data.Connection reset”

问题描述:

解决方法:

方法一:

在server前面加上https://,如下:

然后重新连接,发现问题解决。

方法二:

1. 使用cmd去ping一下github.com,发现丢包率为100%

2. 去电脑的host文件里做修改,路径如下:

C:\Windows\System32\drivers\etc

找到host文件,然后右键-属性-安全-编辑,选中当前电脑登录的用户,给自己最高权限,确认。在最后面加上如下:

192.30.253.113  github.com
192.30.252.131  github.com
185.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

保存并退出。

3. 再去ping一下github:

发现完全可以ping通。

4. 然后去IDEA连接github,成功连接。

猜你喜欢

转载自blog.csdn.net/m0_38023584/article/details/106326669