Connection has been unexpectedly closed. Server sent command exit status 0.

Advertisement

naren54783
Joined:
Posts:
6
Location:
Narendra Patel

Connection has been unexpectedly closed. Server sent command exit status 0.

We are getting an intermittent error as "WinSCP.SessionRemoteException: Connection has been unexpectedly closed. Server sent command exit status 0.
---> WinSCP.SessionRemoteException: Authentication log (see session log for details): Using username "xyz". Access denied.
Authentication failed."

After sometime the same user is able to access and can perform the operations.

We check our credentials and is all correct.


Can someone please help me?


WinSCP Version 5.5.6(Build 4746).

Reply with quote

Advertisement

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

Re: Connection has been unexpectedly closed. Server sent command exit status 0.

Did you check the server-side log, if there is any information why the server rejected the login?

Reply with quote

naren54783
Joined:
Posts:
6
Location:
Narendra Patel

Re: Connection has been unexpectedly closed. Server sent command exit status 0.

martin wrote:

Did you check the server-side log, if there is any information why the server rejected the login?


I checked the server logs and it says "failed to sign on : Incorrect password." Same code is working most of the time but intermittent its failing.
All the connection information is stored on database.

Please let me know if you have any idea on this.

Reply with quote

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

Re: Connection has been unexpectedly closed. Server sent command exit status 0.

Enable password logging and make sure that the same password is used all the time.

session.AddRawConfiguration(@"Logging\LogSensitive", "1");

Reply with quote

Advertisement

You can post new topics in this forum