Disconnected: No supported authentication methods available(server sent: publickey) 的解决办法

版权声明:本文为博主原创文章,如果觉得写的不错需要转载,在转载时请注明博文出处! https://blog.csdn.net/Hello_World_QWP/article/details/82216345

问题描述:

在使用 TortoiseGit 客户端将远程代码 Pull 到本地的时候,出现异常,Pull 失败,并提示错误信息 “ Disconnected: No supported authentication methods available(server sent: publickey) ” ,如下图所示:

解决方案:

“ 没有支持的认证方法 ”,我们需要修改 TortoiseGit 网络的 SSH 客户端为 git 服务器的 ssh.exe (前提条件:本地必须已经安装 git 服务器)。

1、在修改前,TortoiseGit 使用的是自己的 TortoiseGitPlink.exe 作为 SSH 客户端,鼠标右键 -> TortoiseGit -> Settings -> Network -> SSH Client 项,如下图:

2、这儿进行修改操作,点击 “ Browser ” 找到在本地安装的 git 服务的根目录 -> Git -> usr -> bin 目录下选中 ssh.exe ,再点击打开即可,如下图:

3、回到 客户端后,点击 “ 应用 ” 即可,如下图:

4、测试修改后,能否进行从远程 git 仓库中 Pull 代码,如下图:


好了,关于 Disconnected: No supported authentication methods available(server sent: publickey) 的解决办法 就写到这儿了,如果还有什么疑问或遇到什么问题欢迎扫码提问,也可以给我留言哦,我会一一详细的解答的。 
歇后语:“ 共同学习,共同进步 ”,也希望大家多多关注CSND的IT社区。

猜你喜欢

转载自blog.csdn.net/Hello_World_QWP/article/details/82216345