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.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Do you know maybe on what ports the WinSCP tries to do the remote directory reading?
LANG C
?
. --------------------------------------------------------------------------
. 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.
Error listing directory "/userspace/u/p/pl".
Unexpected directory listing line "drwx--x--x 4 pl 4096 Feb 17 20:55 .".
Operation aborted
dir
command instead of an ls
command? If so, how do I fix this.