Windows PuTTY - git错误 - 没有支持的身份验证方法 [英] Windows PuTTY - git error - No supported authentication methods

查看:1293
本文介绍了Windows PuTTY - git错误 - 没有支持的身份验证方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在本地机器上使用git时,我没有这个问题,只有在通过SSH使用PuTTY登录时才会出现此问题。假设我的当前目录是我的git存储库的本地目录...



假设我的服务器正在使用freeSSHd。

命令 git -c diff.mnemonicprefix = false -c core.quotepath = false fetch origin 发出以下错误:

 致命错误:断开:没有支持的认证方法可用(服务器发送:publickey)

再一次,这只发生在我通过PuTTY登录时,而不是当我身在服务器时进入命令提示符时。

解决方案

通过SSH登录的管理员无法访问pageant.exe,即使管理员可以正常访问它。我必须在SSH内部调用选美才能使其运行;这导致了多个pageant.exe进程:(最后我抛弃了cygwin的freeSSHd,现在我又遇到了一些问题。


I don't have this problem when I use git locally on my machine, ONLY when logged in via SSH with PuTTY. FYI my server is using freeSSHd.

Assuming my current directory is my git repository's local directory...

The command git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin issues the following error:

FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)

Again, this only happens when I'm logged in via PuTTY and not when I'm in the command prompt when I'm physically at the server.

解决方案

pageant.exe is inaccessible to Administrator logged in via SSH even though it's accessible to Administrator normally. I had to invoke pageant while inside SSH to get it to work; this results in multiple pageant.exe processes :( In the end I ditched freeSSHd for cygwin and now I have another set of problems.

这篇关于Windows PuTTY - git错误 - 没有支持的身份验证方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆