日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【git】No supported authentication methods available(server sent:pubickey)

發布時間:2023/12/20 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【git】No supported authentication methods available(server sent:pubickey) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

問題1】:每天git push代碼都好好的,今天也不知道為啥,傲嬌起來了,報了這樣一個錯誤:No supported authentication methods available(server sent:pubickey),然后就來問度娘了,一位網友提供了如下解決方法:
將Tortoise默認的SSH客戶端修改為Git服務的SSH客戶端,即D:\software\TortoiseGit\bin\TortoiseGitPlink.exe修改為D:\software\Git\usr\bin\ssh.exe。

恩,“沒有認證方法”的問題解決了,又來問題了:fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists,但是我明明在github里配置了ssh key啊,于是另一個網友又提供了解決方法:把.ssh目錄下的known_hosts文件刪除。
最終,可以push代碼了。

問題2】:IDEA中使用git push代碼時遇到如下報錯:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:xnm0q+BqBcS4V4hbst3zE9U7AabUGi5RquzA5kP/bfk. Please contact your system administrator. Add correct host key in /c/Users/admin/.ssh/known_hosts to get rid of this message. Offending RSA key in /c/Users/admin/.ssh/known_hosts:1 RSA host key for [git.imooc.com]:80 has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

刪除C:\Users\admin\.ssh目錄下的known_hosts即可。

總結

以上是生活随笔為你收集整理的【git】No supported authentication methods available(server sent:pubickey)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。