Topic "WinSCP 5.5.6 error - Server refused our key (Connecting through a proxy server)"

Author Message
viral.shah
[View user's profile]

Joined: 2014-12-22
Posts: 3
Location: Australia
We are using c# winscp.net assembly.

We have set up the task scheduler job which runs every 10 minutes.

The task failed occassionally. The task failed because of this error

"Failed to login (1 time) <WinSCP.SessionRemoteException: Connection has been unexpectedly closed. Server sent command exit status 0. ---> WinSCP.SessionRemoteException: Authentication log (see session log for details): Using username "BTMUDEV". Server refused our key. Authentication failed. --- End of inner exception stack trace --- at WinSCP.SessionLogReader.Read(LogReadFlags flags) at WinSCP.ElementLogReader.Read(LogReadFlags flags) at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags) at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags) at WinSCP.Session.Open(SessionOptions sessionOptions) "

We are using the 5.5.6 version and this problem occurs in this version.

Any quick help will be highly appreciated.

Thank You,
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
viral.shah wrote:
Server refused our key

You have configured the key authentication incorrectly on the server.
Guest




Thank You for the response.

The task runs every 10 minutes, 24 hrs a day for a month now. But we got this error on just one particular day within 2 hours of interval. I belive, If the key was incorrectly configured, It would not have worked at all. Isn't it?

Could there be any other reasons that We can get this error?

Thank You,
Viral
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Then it can be some variation of a padding bug, known in some servers.
See for example http://winscp.net/tracker/show_bug.cgi?id=1091

Try to enable Requires padding on SSH-2 RSA signatures:
http://winscp.net/eng/docs/ui_login_bugs#rsa_padding
Guest




Thanks for the reply again.

The error which we got is not "Server refused public-key signature despite accepting key". For this error, we already put the workaround and it fixed the problem.

This error is "Server refused our key (Connecting through a proxy server)". This error also occurred occassionally.

Any quick help will be highly appricieted.

Thank You,
Viral
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What is your server?
Guest




Server - Axway (Secure Transport Server 4.8.1).
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Did you consider upgrading your server? Your version seems pretty old.
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