Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Server refused our key: No supported authentication methods available

Please post complete log for successful and failed authentication. Also, did you check server-side log file? What does it say?
Stockburn

Server refused our key: No supported authentication methods available

I am calling WinSCP via an SSIS job / bat file, getting an error in the log file telling me the server refused our key. See below for the error.
This is intermittent, sometimes does / doesn't work, I also see the failure when logging in manually using the EXE, hit the reconnect button and it works.
Any suggestions or advice would be appreciated.

Windows 2019
WinSCP 6.3.6
. Server offered these authentication methods: publickey
. 2025-01-13 13:38:05.651 Offered public key
! 2025-01-13 13:38:05.823 Server refused our key
< 2025-01-13 13:38:05.823 Script: Server refused our key.
. 2025-01-13 13:38:05.823 Server refused our key
. 2025-01-13 13:38:05.823 Server offered these authentication methods: publickey
. 2025-01-13 13:38:05.823 No supported authentication methods available (server sent: publickey)
. 2025-01-13 13:38:05.823 Attempt to close connection due to fatal exception:
* 2025-01-13 13:38:05.823 No supported authentication methods available (server sent: publickey)
. 2025-01-13 13:38:05.823 Closing connection.
< 2025-01-13 13:38:05.823 Script: No supported authentication methods available (server sent: publickey)
< 2025-01-13 13:38:05.823 Authentication log (see session log for details):
< 2025-01-13 13:38:05.823 Using username "*******".
< 2025-01-13 13:38:05.823 Server refused our key.
< 2025-01-13 13:38:05.823