Limit failed Pageant tries
I had 6 Pageant keys loaded. I tried to log into an SFTP account that does not use keys but does have a saved password. It failed because the server disconnected after WinSCP tried 5 Pageant keys.
This may not be good default behavior.
Suggestion:
1. A new session option: limit Pageant tries to the first [3] available keys
2. A new global option: [off] skip Pageant if Private key file not specified (overrides session option "Attempt authentication using Pageant").
3. A different UI for the session option SSH/Authentication:
I have many SFTP accounts, so my workaround was to use a script to edit WinSCP.ini, adding the line
to most session profiles.
This may not be good default behavior.
Suggestion:
1. A new session option: limit Pageant tries to the first [3] available keys
2. A new global option: [off] skip Pageant if Private key file not specified (overrides session option "Attempt authentication using Pageant").
3. A different UI for the session option SSH/Authentication:
Authentication options * Attempt TIS or CryptoCard Authentication (SSH-1) * Bypass Authentication entirely (SSH-2) * Attempt 'keyboard-interactive' authentication (SSH-2) ** Respond with password to the first prompt Authentication key * Private key file * Attempt authentication using Pageant * Limit Pageant attempts to the first [3] keys currently loaded, if key file above blank * Allow agent forwarding GSSAPI ...
I have many SFTP accounts, so my workaround was to use a script to edit WinSCP.ini, adding the line
TryAgent=0