WinSCP.SessionRemoteException:Connection has been unexpected

Advertisement

naren54783
Joined:
Posts:
6
Location:
Narendra Patel

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

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.

Reply with quote

Advertisement

You can post new topics in this forum