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

Error listing directory

Diky Martine,

I tried changing the home directory in the account to use forward slashes but no change. The MKS server is based on OpenSSH but seems to be a bit dodgy. I will raise a support call to them.

Bevan.
martin

Re: Error Listing Directory when connecting

There is some problem with server configuration. SFTP requires that forward slashes are used. OpenSSH emulation on Windows follows that. I do not know why it does not in your case.
bevanl

Error Listing Directory when connecting

I am using WinSCP 3.7.4, Explorer interface. When I connect to a server, I get the following error:
Error listing directory ....
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 11

The directory definitely exists on the server and security is set up so the user has full control. The SFTP server is provided my MKS,(A unix environment emulation on Windows) and its SSH is a ported version of OpenSSH.

From the log, I see the messages after an authorised connection has been established:
. 2006-08-24 13:16:26.067 Using SFTP protocol.
. 2006-08-24 13:16:26.067 Doing startup conversation with host.
> 2006-08-24 13:16:26.067 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2006-08-24 13:16:26.098 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2006-08-24 13:16:26.098 SFTP version 3 negotiated.
> 2006-08-24 13:16:26.098 Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
< 2006-08-24 13:16:26.114 Type: SSH_FXP_STATUS, Size: 38, Number: 200
< 2006-08-24 13:16:26.114 Status/error code: 8
. 2006-08-24 13:16:26.114 Server does not recognise WinSCP.
. 2006-08-24 13:16:26.114 We believe the server has signed timestamps bug
. 2006-08-24 13:16:26.114 Getting current directory name.
. 2006-08-24 13:16:26.114 Getting real path for '.'
> 2006-08-24 13:16:26.114 Type: SSH_FXP_REALPATH, Size: 10, Number: 528
< 2006-08-24 13:16:26.130 Type: SSH_FXP_NAME, Size: 69, Number: 528
. 2006-08-24 13:16:26.130 Real path is 'X:\Data\SFTP\secCBABasel'
. 2006-08-24 13:16:26.130 Listing directory "X:\Data\SFTP\secCBABasel/X:\Data\SFTP\secCBABasel".
> 2006-08-24 13:16:26.130 Type: SSH_FXP_OPENDIR, Size: 58, Number: 779
< 2006-08-24 13:16:26.145 Type: SSH_FXP_STATUS, Size: 29, Number: 779
< 2006-08-24 13:16:26.145 Status/error code: 2, Message: 779, Server: No such file, Language:
* 2006-08-24 13:16:26.145 (ECommand) Error listing directory 'X:\Data\SFTP\secCBABasel'.
* 2006-08-24 13:16:26.145 No such file or directory.
* 2006-08-24 13:16:26.145 Error code: 2
* 2006-08-24 13:16:26.145 Error message from server: No such file
* 2006-08-24 13:16:26.145 Request code: 11
. 2006-08-24 13:16:31.942 Startup conversation with host finished.
. 2006-08-24 13:16:33.223 Detected incoming data while idle
. 2006-08-24 13:16:36.364 Detected incoming data while idle
. 2006-08-24 13:16:38.301 Closing connection.

I have changed the EOL setting in Environment to CR/LF as resomended in FAQ's but still no luck... I notice the message in the logs about a potential bug and hope there is a work-around.

Any clues?