WinSCP login error
Overview
In SFTP Gateway version 3.0.1, there is an error when logging in via the WinSCP client:
Connection has been unexpectedly closed.
Server sent command exit status 0.
Error getting name of current remote directory.
This article discusses the cause of this error and how to resolve it.
Note: This issue has been resolved in version 3.001.00.
The error message
When you attempt to log into SFTP gateway version 3.0.1 via WinSCP, you may see this error message.
This error only happens with WinSCP, and does not happen with FileZilla or the SFTP command line.
Resolution
The problem is that SFTP Gateway version 3.0.1 is not using a timestamp format for files and folders that is compatible with the latest SFTP protocol version (which WinSCP uses).
We are working on a minor version update to fix this issue.
In the meantime, one workaround is to change the SFTP Protocol version for WinSCP.
- When filling out session information, go to
Advanced...
and selectEdit Raw Setting
.
- There you will click
Add
. UnderSite Setting
, look forSFTPMaxVersion
and select it.
- Click
OK
and change its value to3
. ClickOK
once more.
You should now be able to log in as the SFTP user.
Test