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

martin

Re: server does not support SFTP extension

I have simulated your server using the log and I do not see empty listing. I see 21 directory entries, but with no names. Is this what you see?

In all cases it seems like server-side problem.
martin

Re: server does not support SFTP extension

festiva94 wrote:

No, If I use the Tectia client to connect to the same server I receive the same results. I figured someone else would have run into this before. I do have another server running OpenSSH 3.9p1 that works fine. Probably shouldn't bother you any more. The server that is having this problem is an appliance and patches/upgrades are controlled by the manufacturer. I may just go the manufacturer and request they upgrade OpenSSH to the latest release. I would think that this would have been documented within OpenSSH for that release.

Hmm, anyway if I find time, I'll try to parse the response and post here the results. I find it interesting that the response has 2kb, but WinSCP does not list anything.
festiva94

Re: server does not support SFTP extension

martin wrote:

I'll try to parse the protocol log later in the evening.

festiva94 wrote:

I should have mentioned earlier that the Commercial ssh.com Tectia does the same thing?

Do you mean that if you let WinSCP connect to the same host, but via the Tectia SSH server there are no files listed too?


No, If I use the Tectia client to connect to the same server I receive the same results. I figured someone else would have run into this before. I do have another server running OpenSSH 3.9p1 that works fine. Probably shouldn't bother you any more. The server that is having this problem is an appliance and patches/upgrades are controlled by the manufacturer. I may just go the manufacturer and request they upgrade OpenSSH to the latest release. I would think that this would have been documented within OpenSSH for that release.
martin

Re: server does not support SFTP extension

I'll try to parse the protocol log later in the evening.

festiva94 wrote:

I should have mentioned earlier that the Commercial ssh.com Tectia does the same thing?

Do you mean that if you let WinSCP connect to the same host, but via the Tectia SSH server there are no files listed too?
festiva94

Re: server does not support SFTP extension

martin wrote:

I do not see any problem in the log file. It seems that there are at least some file returned from the server.

One idea: can it be that all the files in the directories are hidden (they start with dot)? WinSCP by default does not show hidden files.

If this is not the case, please enable Protocol (Low-Level) Logging and post the log file again.


Okay, to eliminate hidden, I set WinSCP to login to the / directory where there are known files and folders viewable with RWX privs. Here is the log. Do you think this is a OpenSSH bug? I should have mentioned earlier that the Commercial ssh.com Tectia does the same thing?

. --------------------------------------------------------------------------
. WinSCP Version 3.7.2 (Build 262) (OS 5.0.2195 Service Pack 4)
. Login time: Thursday, February 03, 2005 9:35:01 AM
. --------------------------------------------------------------------------
. Session name: x@x.x.x.x
. Host name: x.x.x.x (Port: 22)
. 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: -,-,-,-,-,-,-,-
. SFTP Bugs: -,-
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: /, Update: No, Cache: No
. Cache directory changes: No, Permanent: No
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "x.x.x.x"
. Connecting to x.x.x.x port 22
. Server version: SSH-1.99-OpenSSH_3.7.1p2
. We claim version: SSH-2.0-WinSCP_release_3.7.2
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 xxxxxxx
. Initialised AES-256 client->server encryption
. Initialised HMAC-SHA1 client->server MAC algorithm
. Initialised AES-256 server->client encryption
. Initialised HMAC-SHA1 server->client MAC algorithm
! Using username "root".
. Keyboard-interactive authentication refused
. Session password prompt (x@x.x.x.x'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
> 01,00,00,00,05,
< Type: SSH_FXP_VERSION, Size: 5, Number: -1
< 02,00,00,00,03,
. SFTP version 3 negotiated.
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
> C8,00,00,00,C8,00,00,00,1D,77,69,6E,73,63,70,40,77,69,6E,73,63,70,2E,73,6F,
> 75,72,63,65,66,6F,72,67,65,2E,6E,65,74,
< Type: SSH_FXP_STATUS, Size: 38, Number: 200
< 65,00,00,00,C8,00,00,00,08,00,00,00,15,4F,70,65,72,61,74,69,6F,6E,20,75,6E,
< 73,75,70,70,6F,72,74,65,64,00,00,00,00,
< Status/error code: 8
. Server does not recognise WinSCP.
. Changing directory to "/".
. Getting real path for '/'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 528
> 10,00,00,02,10,00,00,00,01,2F,
< Type: SSH_FXP_NAME, Size: 23, Number: 528
< 68,00,00,02,10,00,00,00,01,00,00,00,01,2F,00,00,00,01,2F,00,00,00,00,
. Real path is '/'
. Trying to open directory "/".
> Type: SSH_FXP_LSTAT, Size: 10, Number: 775
> 07,00,00,03,07,00,00,00,01,2F,
< Type: SSH_FXP_ATTRS, Size: 37, Number: 775
< 69,00,00,03,07,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,
< 00,00,41,ED,42,02,36,3B,41,A7,59,50,
. Getting current directory name.
. Listing directory "/".
> Type: SSH_FXP_OPENDIR, Size: 10, Number: 1035
> 0B,00,00,04,0B,00,00,00,01,2F,
< Type: SSH_FXP_HANDLE, Size: 13, Number: 1035
< 66,00,00,04,0B,00,00,00,04,00,00,00,00,
> Type: SSH_FXP_READDIR, Size: 13, Number: 1292
> 0C,00,00,05,0C,00,00,00,04,00,00,00,00,
< Type: SSH_FXP_NAME, Size: 2025, Number: 1292
< 68,00,00,05,0C,00,00,00,15,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,
< 2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,
< 20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,
< 00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,
< 97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,
< 20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,
< 20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,
< 00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,
< 50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,
< 72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,
< 34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,
< 01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,
< 00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,
< 20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,
< 76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,
< 00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,
< 38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,
< 20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,
< 20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,
< 00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,
< 78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,
< 74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,
< 32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,
< 41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,
< 72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,
< 20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,
< 00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,
< 36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,
< 20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,
< 20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,
< 00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,
< 59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,
< 20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,
< 30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,
< 00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,
< 00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,
< 74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,
< 6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,
< 00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,
< 00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,
< 20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,
< 36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,
< 00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,
< 77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,
< 6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,
< 3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,
< 00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,
< 78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,
< 20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,
< 00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,
< 02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,
< 20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,
< 20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,
< 00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,
< A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,
< 39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,
< 35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,
< 00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,
< 00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,
< 6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,
< 4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,
< 00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,
< 00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,
< 20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,
< 32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,
< 00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,
< 72,77,78,72,2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,
< 6F,6F,74,20,20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,
< 31,3A,32,36,20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,
< 00,00,41,ED,42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,
< 2D,78,72,2D,78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,
< 20,20,20,20,20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,
< 20,00,00,00,0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,
< 42,02,36,97,41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,
< 78,20,20,20,31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,
< 20,20,20,20,20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,
< 0F,00,00,00,00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,
< 41,A7,59,50,00,00,00,00,00,00,00,38,64,72,77,78,72,2D,78,72,2D,78,20,20,20,
< 31,39,20,72,6F,6F,74,20,20,20,20,20,72,6F,6F,74,20,20,20,20,20,20,20,20,20,
< 20,35,30,34,20,4E,6F,76,20,32,36,20,31,31,3A,32,36,20,00,00,00,0F,00,00,00,
< 00,00,00,01,F8,00,00,00,00,00,00,00,00,00,00,41,ED,42,02,36,97,41,A7,59,50,
> Type: SSH_FXP_READDIR, Size: 13, Number: 1548
> 0C,00,00,06,0C,00,00,00,04,00,00,00,00,
< Type: SSH_FXP_STATUS, Size: 28, Number: 1548
< 65,00,00,06,0C,00,00,00,01,00,00,00,0B,45,6E,64,20,6F,66,20,66,69,6C,65,00,
< 00,00,00,
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 1796
> 04,00,00,07,04,00,00,00,04,00,00,00,00,
. Startup conversation with host finished.
. Closing connection.
martin

Re: server does not support SFTP extension

I do not see any problem in the log file. It seems that there are at least some file returned from the server.

One idea: can it be that all the files in the directories are hidden (they start with dot)? WinSCP by default does not show hidden files.

If this is not the case, please enable Protocol (Low-Level) Logging and post the log file again.
festiva94

Re: server does not support SFTP extension

martin wrote:

What is your server? On what OS? Can you post a log file?


Server is a Intel box running Linux kernel 2.4.22. Log file from WinSCP is below. The log file was me simply logging in via the WinSCP GUI>I then saw a listing of directories but there were no names associated with what I saw>I went up one directory>I saw no entries even though I know they exist.
. --------------------------------------------------------------------------
. WinSCP Version 3.7.2 (Build 262) (OS 5.0.2195 Service Pack 4)
. Login time: Thursday, February 03, 2005 8:48:51 AM
. --------------------------------------------------------------------------
. Session name: root@x.x.x.x
. Host name: x.x.x.x (Port: 22)
. User name: xxxxxxxxx (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: -,-,-,-,-,-,-,-
. SFTP 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 "x.x.x.x"
. Connecting to x.x.x.x port 22
. Server version: SSH-1.99-OpenSSH_3.7.1p2
. We claim version: SSH-2.0-WinSCP_release_3.7.2
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 xxxx
. Initialised AES-256 client->server encryption
. Initialised HMAC-SHA1 client->server MAC algorithm
. Initialised AES-256 server->client encryption
. Initialised HMAC-SHA1 server->client MAC algorithm
! Using username "xxxxxxxx".
. Keyboard-interactive authentication refused
. Session password prompt (x@x.x.x.x'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
< Type: SSH_FXP_NAME, Size: 873, Number: 1036
> Type: SSH_FXP_READDIR, Size: 13, Number: 1292
< Type: SSH_FXP_STATUS, Size: 28, Number: 1292
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 1540
. Startup conversation with host finished.
. Changing directory to home directory.
. Getting real path for '/root'
> Type: SSH_FXP_REALPATH, Size: 14, Number: 1808
< Type: SSH_FXP_STATUS, Size: 24, Number: 1540
. Discarding reserved response
< Type: SSH_FXP_NAME, Size: 31, Number: 1808
. Real path is '/root'
. Trying to open directory "/root".
> Type: SSH_FXP_LSTAT, Size: 14, Number: 2055
< Type: SSH_FXP_ATTRS, Size: 37, Number: 2055
. Getting current directory name.
. Directory content loaded from cache.
. Cached directory change via ".." to "/".
. Getting current directory name.
. Listing directory "/".
> Type: SSH_FXP_OPENDIR, Size: 10, Number: 2315
< Type: SSH_FXP_HANDLE, Size: 13, Number: 2315
> Type: SSH_FXP_READDIR, Size: 13, Number: 2572
< Type: SSH_FXP_NAME, Size: 2025, Number: 2572
> Type: SSH_FXP_READDIR, Size: 13, Number: 2828
< Type: SSH_FXP_STATUS, Size: 28, Number: 2828
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 3076
. Closing connection.
martin

Re: server does not support SFTP extension

What is your server? On what OS? Can you post a log file?
festiva94

server does not support SFTP extension

Any help is appreciated -

Client is - WinSCP3.7.2 (Build 262)

Server is - OpenSSH 3.7.1p2

I login and authenticate successfully but the directory listing is empty and it does not show any of the directory structure on the server using the gui. Same result from command line sftp.

When I drag and drop a file, the file is transferred but I do not see it in the window. I use the command line to verify the file was successfully transferred.

WinSCP>Commands>Server/Protocol Information says that "The server does not support any SFTP extension". SFTP is Version 3 and SSH Protocol is 2. Any ideas on why I am unable to see the directory listing?