解決idea中GitHub賬號登錄問題


方法一:

Intellij登錄github賬戶報錯 :Invalid authentication data. Couldn`t kickstart handsharking

解決方案:在添加github賬戶這里一定要在 Server 里面加 https://

File–Settings—Versin Control—GitHub

 

方法二:

今天在idea上登錄github顯示錯誤信息invalid authentication data。
網上搜索發現是token的問題,然后就把就把已有的全部刪除重新建一個token

      • 進入token頁面
        Settings
        在這里插入圖片描述
      • 點擊Developer settings
        在這里插入圖片描述
      • 點擊 Personal access tokens
        在這里插入圖片描述
      • 刪除已有的token,然后重新創建一個token

在這里插入圖片描述

        做完之后idea就可以登入了
        方法三:

找了好多都不好用,什么no proxy。。。

都不對

問題描述:

好久沒上idea,剛搭建個項目發現沒法連接Git備份:提示如下:

Invalid authentication data. annot retry due to redirection, in streaming mode.

(無效的身份驗證數據。在流模式下,由於重定向而重試。)

正解參考:https://blog.csdn.net/qq_17623363/article/details/107802752?utm_medium=distribute.pc_relevant.none-task-blog-baidulandingword-9&spm=1001.2101.3001.4242

打開cmd-->運行ping github.com

發現網絡不通:

打開打開:
http://github.global.ssl.fastly.net.ipaddress.com/ 進行查詢IP地址,把查詢到的IP地址,復制到自己的hosts文件中。

hosts 文件位置(C:\Windows\System32\drivers\etc)及編輯方法:

找到記事本--->右鍵以管理員方式打開

打開host文件位置,開始為空,選擇類型(*所有類型)

將打開查找到的路徑ip

將ip配置到host:方法如下顯示

在文檔最末尾添加:

然后點擊保存

再次打開cmd,重新ping下github.com

然后返回idea-----------別急,發現還是不好使:

然后看到提示:enter token

搜了一下發現設定完host下的ip后,https://github.com/網站打不開了,額... ...

注釋剛加的host里的ip地址一行:https://github.com/就打開了,尷尬不》》繼續解決:

登入個人賬號-->Settings-->Developer settings--->Personal access tokens--->

Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.
個人訪問令牌的功能與普通 OAuth 訪問令牌一樣。它們可以通過 HTTPS 代替 Git 的密碼使用,也可以用於通過基本身份驗證對 API 進行身份驗證。

select scopes 下面勾選類似於你付此次token生成之后使用此token權限的選擇項,根據需要選擇你要使用本次token的權限。

滾動到最下面有一個生成token的按鈕:

之后會有一段如下的顯示:

是你自己的賬號的token

方法四:

 

 

方法一:

在Server加上https://

也就是改成:https://github.com

方法二:

idea設置里搜索HTTP Proxy ,去掉代理就可以了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM