3
votes

I've created a putty session using a private key (no passphrase) that connects flawlessly from putty. However, when I connect via plink, loading the same session on the same machine, specifying the same username, I get the No supported authentication methods available message. Any ideas? I need to use plink from a CLI without going through the putty gui. I installed putty-0.62-installer in Win 2008.

Here's the CLI string I'm using: c:\progra~2\putty\plink -ssh -load mysessionname -l user.name

RESULT: Server refused our key FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

1
I asked Captain Obvious and he said its because Plink does not support any of the authentication methods offered by the server. - Havenard
Would you ask the good Captain to read the entire post, especially the part that says... "I've created a putty session using a private key (no passphrase) that connects flawlessly from putty. However, when I connect via plink, loading the same session on the same machine, specifying the same username, I get the No supported authentication methods available message." -- emphasis on the word SAME - Brian Wilson
Havenard: "perhaps". Not helpful. - Niels Abildgaard
have u solved this issue? im having same problem. - GeneCode
@GeneCode I solved it by using the -i command line option, like so: plink -i C:\path\to\private-key.ppk -ssh [email protected]. (I found that advice in section 12 of this page.) - Josh O'Brien

1 Answers

0
votes

I had the same problem, but solved it the same way that @GeneCode did - Somehow plink wasn't using pageant and I had to specify the private key on the command line. I also tried it with superputty and still had to define the private key with the -i parameter when calling plink.exe, even though I specified the private key in auth, and enabled "allow agent forwarding" and "attempt authentication using Pageant."

All of this worked without -i before, but something changed and now I have to use -i with plink.