Windows PuTTY - git error - No supported authentic

2019-09-20 01:54发布

问题:

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.



标签: git ssh putty