I'm running a certificate authenticated SFTP script using "option batch abort" every 15 minutes. Approx every two weeks I get "Server refused our key" - I assume it's about a network problem and the key isn't transfered correctly to the server. Anyway, I can't do anything about that.
What's bugging me is that after the has been refused the script switches to keyboard-interactive authentication and stalls.
I tried serveral options in the Authetication tab in WinSCP.exe, none of them worked.
Is there a way to abort the login process at all when the key is refused?