Topic "Limit failed Pageant tries"

Author Message
kitchin
[View user's profile]

Joined: 2015-02-13
Posts: 1
Location: Virginia
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:

Code:
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
Code:
TryAgent=0

to most session profiles.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your suggestions. Will consider them.

Quote:
I have many SFTP accounts, so my workaround was to use a script to edit WinSCP.ini, adding the line
Code:
TryAgent=0

to most session profiles.

Since 5.6.x you can set the option for all (or selected) stored sites from command line like:
winscp.exe /batchsettings * TryAgent=0
See http://winscp.net/eng/docs/commandline#batchsettings
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License