WinSCP not reading remote directory

Advertisement

plehrer
Guest

WinSCP not reading remote directory

Hi,
I am trying to connect to a unix server and WinSCP is not reading the remote directory.

I keep on getting this error message:
Error listing directory "/userspace/u/p/pl".
Unexpected directory listing line "drwx--x--x 4 pl 4096 Feb 17 20:55 .".
Operation aborted
Is WinSCP using a dir command instead of an ls command? If so, how do I fix this.

Thank you,
Peter

Reply with quote

Advertisement

ljlin
Guest

Re: WinSCP not reading remote directory

I have the same problem. I just set environ. varable "LANG C",and it work well now.hope this will be helpful. :)

Reply with quote

yan
Joined:
Posts:
3

Re: WinSCP not reading remote directory

I have the same problem and couldn't find an answer in the forum. I'm attaching a log file.... where is the environment variable where I can set LANG C?

Thanks, and here is the log (ip addresses are changed):
. --------------------------------------------------------------------------
. WinSCP Version 3.6.1 (Build 221) (OS 5.1.2600)
. Login time: June 16, 2004 7:27:14 PM
. --------------------------------------------------------------------------
. Session name: asp
. Host name: 222.88.99.22 (Port: 1113)
. User name: root (Password: Yes, Key file: No)
. Transfer Protocol: SCP
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "222.88.99.22"
. Connecting to 222.88.99.22 port 1113
. Server version: SSH-1.99-OpenSSH_2.9p2
. We believe remote version has SSH2 RSA padding bug
. We claim version: SSH-2.0-WinSCP-release-3.6.1
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 9c:40:d0:d3:c2:3f:da:1d:77:63:78:ad:90:9c:9c:5a
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "root".
. Keyboard-interactive authentication refused
. Session password prompt (root@222.88.99.22's password: )
. Using stored password.
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Detecting variable containing return code of last command.
. Trying "$status".
> echo "$status" ; echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Trying "$?".
> echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 0
< WinSCP: this is end-of-file:0
. Return code variable "$?" selected.
. Clearing all aliases.
> unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `echo': not an alias
< WinSCP: this is end-of-file:1
> unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `pwd': not an alias
< WinSCP: this is end-of-file:1
> unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `cd': not an alias
< WinSCP: this is end-of-file:1
> unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `groups': not an alias
< WinSCP: this is end-of-file:1
> unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `scp': not an alias
< WinSCP: this is end-of-file:1
> unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `mkdir': not an alias
< WinSCP: this is end-of-file:1
> unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `chmod': not an alias
< WinSCP: this is end-of-file:1
> unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `chgrp': not an alias
< WinSCP: this is end-of-file:1
> unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `chown': not an alias
< WinSCP: this is end-of-file:1
> unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `unset': not an alias
< WinSCP: this is end-of-file:1
> unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `unalias': not an alias
< WinSCP: this is end-of-file:1
> unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `alias': not an alias
< WinSCP: this is end-of-file:1
> unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `ln': not an alias
< WinSCP: this is end-of-file:1
> unalias "%s" ; echo "WinSCP: this is end-of-file:$?"
! -bash: unalias: `%s': not an alias
< WinSCP: this is end-of-file:1
. Clearing national user variables.
> unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Looking up groups and users.
> groups ; echo "WinSCP: this is end-of-file:$?"
< root bin daemon sys adm disk wheel
< WinSCP: this is end-of-file:0
. Following groups found:
.   root
.   bin
.   daemon
.   sys
.   adm
.   disk
.   wheel
. No users found.
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /root
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
. Waiting for data timed out, asking user what to do.
. Asking user:
. Host hasn't answered for 15 seconds.
. 
. Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
. Attempt to close connection due to fatal exception:
* Terminated by user.
. Closing connection.
* (ESshFatal) Error listing directory '/root'.
* Terminated by user.
. --------------------------------------------------------------------------
. WinSCP Version 3.6.1 (Build 221) (OS 5.1.2600)
. Login time: June 16, 2004 7:44:12 PM
. --------------------------------------------------------------------------
. Session name: asp
. Host name: 222.88.99.22 (Port: 1113)
. User name: root (Password: Yes, Key file: No)
. Transfer Protocol: SFTP
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "222.88.99.22"
. Connecting to 222.88.99.22 port 1113
. Server version: SSH-1.99-OpenSSH_2.9p2
. We believe remote version has SSH2 RSA padding bug
. We claim version: SSH-2.0-WinSCP-release-3.6.1
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 9c:40:d0:d3:c2:3f:da:1d:77:63:78:ad:90:9c:9c:5a
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "root".
. Keyboard-interactive authentication refused
. Session password prompt (root@222.88.99.22's password: )
. Using stored password.
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol.
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 5, Number: -1
. SFTP version 3 negotiated.
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
< Type: SSH_FXP_STATUS, Size: 38, Number: 200
< Status/error code: 8
. Server does not recognise WinSCP.
. Getting current directory name.
. Getting real path for '.'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 528
< Type: SSH_FXP_NAME, Size: 31, Number: 528
. Real path is '/root'
. Listing directory "/root".
> Type: SSH_FXP_OPENDIR, Size: 14, Number: 779
< Type: SSH_FXP_HANDLE, Size: 13, Number: 779
> Type: SSH_FXP_READDIR, Size: 13, Number: 1036
. Waiting for data timed out, asking user what to do.
. Asking user:
. Host hasn't answered for 15 seconds.
. 
. Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
. Attempt to close connection due to fatal exception:
* Terminated by user.
. Closing connection.
* (ESshFatal) Error listing directory '/root'.
* Terminated by user.

Reply with quote E-mail

martin
Site Admin
martin avatar

Re: WinSCP not reading remote directory

@yan: I do not see "the same problem" in your logs. Your server does not reply. Or it takes it too long to reply. Does it help if you press "Retry" button? Maybe many times?

Reply with quote

Advertisement

yan
Joined:
Posts:
3

Re: WinSCP not reading remote directory

No. it does not help. I have tried multiple retries.
Maybe I should mention that I'm using:
– Windows XP
– VPN connection to the server
– PuTTY works fine by itself.

Thanks.

Reply with quote E-mail

martin
Site Admin
martin avatar

Re: WinSCP not reading remote directory

I'm sorry but I have no idea what is the problem. However as you have the problems with both protocols, I do not this that the problem is on WinSCP-side. Have you tried other SCP/SFTP client?

Reply with quote

yan
Joined:
Posts:
3

Re: WinSCP not reading remote directory

Yes. I downloaded the evaluation version of WinSSH and it didn't work either.
I think that the problem is that the corp firewall does not allow VPN traffic on some ports and this affects the remote directory reading because in both clients I could SSH in using only the command line.

Do you know maybe on what ports the WinSCP tries to do the remote directory reading?

Thanks.

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: WinSCP not reading remote directory

yan wrote:

Do you know maybe on what ports the WinSCP tries to do the remote directory reading?
None. WinSCP works thru SSH. So if SSH terminal works over your VPN, WinSCP should work as well. It seems rather like your filesystem is not responding to your SSH deamon. But I do not understand why.

Reply with quote

Advertisement

rgattu
Guest

Re: WinSCP not reading remote directory

Connect with different network (Like MobileHotspot) hopefully it's work.

Reply with quote

martin
Site Admin
martin avatar

Re: WinSCP not reading remote directory

@sriram12: None, when it comes to SCP/SFTP, what this topic is about. Some, if you are actually using FTP. But we do not know. You didn't give us any details.

Reply with quote

Advertisement

You can post new topics in this forum