Topic "Empty Directory listing"

Author Message
brianmb

Guest


Hi, When trying to connect to an SSH server I get the following error and am then unable to transfer any files. It looks like it would be a permissions error, but I get the same error when connecting to two different servers (and one of them works fine when using Filezilla)

---------------------------
Error
---------------------------
Error listing directory '/xxxxxx'.
---------------------------
Server returned empty listing for directory '/xxxxx'.
---------------------------
OK Help
---------------------------

Also attached is the log entry:

. 2008-11-07 11:13:30.042 --------------------------------------------------------------------------
. 2008-11-07 11:13:30.042 WinSCP Version 4.1.7 (Build 413) (OS 5.2.3790 Service Pack 1)
. 2008-11-07 11:13:30.042 Login time: 07 November 2008 11:13:30
. 2008-11-07 11:13:30.042 --------------------------------------------------------------------------
. 2008-11-07 11:13:30.042 Session name: XXXX
. 2008-11-07 11:13:30.042 Host name: elink-sshftp.xxxx.com(Port: 22)
. 2008-11-07 11:13:30.042 User name: xxxx (Password: No, Key file: Yes)
. 2008-11-07 11:13:30.042 Tunnel: No
. 2008-11-07 11:13:30.042 Transfer Protocol: SFTP (SCP)
. 2008-11-07 11:13:30.042 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2008-11-07 11:13:30.042 Proxy: none
. 2008-11-07 11:13:30.042 SSH protocol version: 2; Compression: No
. 2008-11-07 11:13:30.042 Bypass authentication: No
. 2008-11-07 11:13:30.042 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2008-11-07 11:13:30.042 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2008-11-07 11:13:30.042 SSH Bugs: -,-,-,-,-,-,-,-
. 2008-11-07 11:13:30.042 SFTP Bugs: -,-
. 2008-11-07 11:13:30.042 Return code variable: Autodetect; Lookup user groups: Yes
. 2008-11-07 11:13:30.042 Shell: default, EOL: 0
. 2008-11-07 11:13:30.042 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: No
. 2008-11-07 11:13:30.042 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2008-11-07 11:13:30.042 Local directory: default, Remote directory: home, Update: No, Cache: No
. 2008-11-07 11:13:30.042 Cache directory changes: No, Permanent: Yes
. 2008-11-07 11:13:30.042 DST mode: 1
. 2008-11-07 11:13:30.042 --------------------------------------------------------------------------
. 2008-11-07 11:13:30.073 Looking up host "elink-sshftp.xxxx.com"
. 2008-11-07 11:13:30.276 Connecting to 171.161.160.130 port 22
. 2008-11-07 11:13:30.588 Server version: SSH-2.0-Connect:Enterprise_UNIX_2.2.00
. 2008-11-07 11:13:30.588 We claim version: SSH-2.0-WinSCP_release_4.1.7
. 2008-11-07 11:13:30.604 SSPI: acquired credentials for: xxxx@xxxx.NET
. 2008-11-07 11:13:30.604 Constructed service principal name 'host/elink-sshftp.xxxx.com'
. 2008-11-07 11:13:30.604 GSSKEX disabled: The specified target is unknown or unreachable

. 2008-11-07 11:13:30.604 Using SSH protocol version 2
. 2008-11-07 11:13:30.745 Doing Diffie-Hellman group exchange
. 2008-11-07 11:13:30.979 Doing Diffie-Hellman key exchange with hash SHA-1
. 2008-11-07 11:13:31.995 Host key fingerprint is:
. 2008-11-07 11:13:31.995 ssh-rsa 1024 xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. 2008-11-07 11:13:31.995 Initialised AES-256 CBC client->server encryption
. 2008-11-07 11:13:31.995 Initialised HMAC-SHA1 client->server MAC algorithm
. 2008-11-07 11:13:31.995 Initialised AES-256 CBC server->client encryption
. 2008-11-07 11:13:31.995 Initialised HMAC-SHA1 server->client MAC algorithm
. 2008-11-07 11:13:32.338 Reading private key file xxxx_rsa.ppk"
! 2008-11-07 11:13:32.338 Using username "xxxxxxx".
. 2008-11-07 11:13:32.463 Offered public key
. 2008-11-07 11:13:32.729 Offer of public key accepted
! 2008-11-07 11:13:32.729 Authenticating with public key "rsa-key-20081024"
. 2008-11-07 11:13:32.948 Access granted
. 2008-11-07 11:13:33.073 Opened channel for session
. 2008-11-07 11:13:33.213 Started a shell/command
. 2008-11-07 11:13:33.213 --------------------------------------------------------------------------
. 2008-11-07 11:13:33.213 Using SFTP protocol.
. 2008-11-07 11:13:33.213 Doing startup conversation with host.
> 2008-11-07 11:13:33.213 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2008-11-07 11:13:33.354 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2008-11-07 11:13:33.354 SFTP version 3 negotiated.
. 2008-11-07 11:13:33.354 We believe the server has signed timestamps bug
. 2008-11-07 11:13:33.354 We will use UTF-8 strings for status messages only
. 2008-11-07 11:13:33.354 Getting current directory name.
. 2008-11-07 11:13:33.354 Getting real path for '.'
> 2008-11-07 11:13:33.354 Type: SSH_FXP_REALPATH, Size: 10, Number: 7440
< 2008-11-07 11:13:33.479 Type: SSH_FXP_NAME, Size: 39, Number: 7440
. 2008-11-07 11:13:33.479 Real path is '/dirxxx'
. 2008-11-07 11:13:33.479 Listing directory "/dirxxx".
> 2008-11-07 11:13:33.479 Type: SSH_FXP_OPENDIR, Size: 18, Number: 7691
< 2008-11-07 11:13:33.604 Type: SSH_FXP_HANDLE, Size: 13, Number: 7691
> 2008-11-07 11:13:33.604 Type: SSH_FXP_READDIR, Size: 13, Number: 7948
< 2008-11-07 11:13:33.760 Type: SSH_FXP_STATUS, Size: 28, Number: 7948
< 2008-11-07 11:13:33.760 Status/error code: 1
. 2008-11-07 11:13:33.760 Listing file "/dirxxx/..".
> 2008-11-07 11:13:33.760 Type: SSH_FXP_LSTAT, Size: 21, Number: 8199
< 2008-11-07 11:13:34.010 Type: SSH_FXP_STATUS, Size: 29, Number: 8199
< 2008-11-07 11:13:34.010 Status/error code: 2, Message: 8199, Server: No such file, Language:
> 2008-11-07 11:13:34.010 Type: SSH_FXP_CLOSE, Size: 13, Number: 8452
* 2008-11-07 11:13:34.010 (ECommand) Error listing directory '/dirxxx'.
* 2008-11-07 11:13:34.010 Server returned empty listing for directory '/dirxxx'.
. 2008-11-07 11:13:36.807 Startup conversation with host finished.

We are using SSH key pair authentication with no password.
Thanks for your help.

Brian
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
I do not see any problem in the log. The server returns no directory listing for the path, so WinSCP reacts accordingly.
Are there any files there? Does Filezilla show them?
_________________
Martin Prikryl
Jonas

Guest


Just a quick hint that worked for me (and might help someone else that has the same error)
When I had not execution rights on the folder I was trying to access I got this error messsage.
KelvinYang

Guest


Thanks Jonas, your suggestion is working for me.
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License