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

Guest

Re: WinSCP.SessionRemoteException:Connection has been unexpected

martin wrote:

Not sure what information you want. It's your server that denies you the access. You should know why. If not, please inspect the server's log.



If we reduce the sFTP call frequency to 2 minutes instead of 10 seconds than we are not getting this error frequently.

Due to multiple sessions in short timespan is causing this issue.
martin

Re: WinSCP.SessionRemoteException:Connection has been unexpected

Not sure what information you want. It's your server that denies you the access. You should know why. If not, please inspect the server's log.
naren54783

WinSCP.SessionRemoteException:Connection has been unexpected

We are using WinSCP.dll in C#.net to download files from sFTP server.


We have multiple calls to the sFTP for downloading the files.
Frequency duration for sFTP call is 10 seconds.
Due to high call frequencies we are getting below error:
"WinSCP.SessionRemoteException: Connection has been unexpectedly closed. Server sent command exit status 0. ---> WinSCP.SessionRemoteException: Authentication log (see session log for details): Using username "abc". Access denied. Authentication failed."


WinSCP 5.5.6(Build 4746).


Please suggest if you have any information.