【git】No supported authentication methods available(server sent:pubickey)
【問(wèn)題1】:每天git push代碼都好好的,今天也不知道為啥,傲嬌起來(lái)了,報(bào)了這樣一個(gè)錯(cuò)誤:No supported authentication methods available(server sent:pubickey),然后就來(lái)問(wèn)度娘了,一位網(wǎng)友提供了如下解決方法:
將Tortoise默認(rèn)的SSH客戶端修改為Git服務(wù)的SSH客戶端,即D:\software\TortoiseGit\bin\TortoiseGitPlink.exe修改為D:\software\Git\usr\bin\ssh.exe。
恩,“沒(méi)有認(rèn)證方法”的問(wèn)題解決了,又來(lái)問(wèn)題了:fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists,但是我明明在github里配置了ssh key啊,于是另一個(gè)網(wǎng)友又提供了解決方法:把.ssh目錄下的known_hosts文件刪除。
最終,可以push代碼了。
【問(wèn)題2】:IDEA中使用git push代碼時(shí)遇到如下報(bào)錯(cuò):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即可。
總結(jié)
以上是生活随笔為你收集整理的【git】No supported authentication methods available(server sent:pubickey)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 计算机网络二层技术——链路聚合原理及其配
- 下一篇: 公交车的自动报站名是如何实现的?