Windows PuTTY - git error - No supported authentication methods

心已入冬 提交于 2019-12-13 08:23:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/21270363/windows-putty-git-error-no-supported-authentication-methods

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!