Topic "exit status 0"

Author Message


Can anyone define and exit status of 0 for me. The complete error I get is.

"Connection has been unexpectedly closed. Sever sent command exit status 0."

Any insite would be helpful.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27086
Location: Prague, Czechia
This error message usually does not help you very much. You need to investigate logs of the server to see why it closes the session.

Do you use SCP or SFTP?
Martin Prikryl


I pulled many hairs tongiht and searched for answer, and finally I found that a little change of the shell in the passwd file did it. Instead of /bin/switch I wrote /bin/sh. I connect to a Windows OpenSSH.

The switch script file tries to solve some stuff, but I couldnt get scp or sftp to work even with many clients and settings. Now finally it works, and I can rest peacefully tonight...

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License