Server refused our key: No supported authentication methods available

Advertisement

Stockburn
Joined:
Posts:
1
Location:
Australia

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,717
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

You can post new topics in this forum