Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

FR: Invoke PLINK with -noagent option when a SSH password is specified

wet's profile image wet posted 5 years ago in Creating a connection Permalink
I was running into "PLINK closed unexpectedly" errors when I tried to connect through a SSH tunnel using keyboard-interactive authentication.

Trying to invoke PLINK in a shell revealed the underlying problem:

Using username "foo".
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures for foo"

This is caused by inadvertently offering multiple ssh keys to the server. The server will reject any key after too many keys have been offered. (source)

PAGEANT was running and served too many keys.

I'd propose to add the '-noagent' option to PLINK's arguments whenever the connection is about to use username/password authentication to avoid similar issues.
ansgar's profile image ansgar posted 5 years ago Permalink
Good point. Thanks for the hint.

Please login to leave a reply, or register at first.