【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)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机网络二层技术——链路聚合原理及其配
- 下一篇: 公交车的自动报站名是如何实现的?