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

Richard Poon

I found the work around on this

Just by unchecking the "Show home folder as root" option in the user account settings on WS_FTP Server.
martin

No really... SFTP protocol spec requests client to "canonify" the remote path it assembles from pieces (like current directory and its subdirectory) using SSH_FXP_REALPATH request. It then needs to use the returned path instead the one it assembled. Your server fails that request, so WinSCP has not way to access the folder you want.

I can only guess why others do work. Maybe they ignore the error and they use path they assembled instead of the canonified one. Or they just ignore the requirement a do not even try to canonify the path.
martin

biruk wrote:

I will ask for support also on Ipswitch for the error on the log, but since with other client is working fine, my question is why with WinSCP doesn't work ?

Maybe because WinSCP follows the SFTP protocol specification, while the others do not? :)
biruk

I will ask for support also on Ipswitch for the error on the log, but since with other client is working fine, my question is why with WinSCP doesn't work ?
martin

Re: view subdir on Ipswitch WS_FTP server with SSH

I do not know how to help you. I looks like a server-side problem to me. Please ask on Ipswitch support.
biruk

view subdir on Ipswitch WS_FTP server with SSH

Hello,

I have an Ipswitch WS_FTP server with SSH installed.
On this server you can create some virtual folders, and when the user connect to the server, he will see only the where he had access.
When the user access one of these directories, he will see the content of the fizical directory.
Maybe some of you work with this type of server and understand what i say.
This works fine, but when I try to access one one sub-directory of this virtual folder, i receive the error message:

Cannot get real path for '/Virtual_Folder/History'.
General failure (server should provide error description).
Error code: 4
Error message from server: Folder not found: /Virtual_Folder/History
Request code: 16
realpath User Error 0 Error Folder not found: /Virtual_Folder/History

Using PSFT, and FileZilla I receive the same error but it work.
Using WS_FTP Pro, as you may expect, it works fine, and I don't receive any error message.

My problem are not the error from the log, but that using WinSCP I cannot access the subfolders, and with other problems is working fine.

I'm using WinSCP 4.2.5.
I have tried also with other versions, 4.1.9, 4.2.3 but I receive the same error.
I'm using the GUI, but I have tried also from command line, same error.


. 2010-01-07 15:20:26.957 --------------------------------------------------------------------------
. 2010-01-07 15:20:26.957 WinSCP Version 4.2.5 (Build 624) (OS 5.1.2600 Service Pack 2)
. 2010-01-07 15:20:26.957 Login time: Thursday, January 07, 2010 3:20:26 PM
. 2010-01-07 15:20:26.957 --------------------------------------------------------------------------
. 2010-01-07 15:20:26.957 Session name: user@server
. 2010-01-07 15:20:26.957 Host name: server (Port: 22)
. 2010-01-07 15:20:26.957 name: user (Password: Yes, Key file: No)
. 2010-01-07 15:20:26.957 Tunnel: No
. 2010-01-07 15:20:26.957 Transfer Protocol: SFTP (SCP)
. 2010-01-07 15:20:26.957 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-01-07 15:20:26.957 Proxy: none
. 2010-01-07 15:20:26.957 SSH protocol version: 2; Compression: No
. 2010-01-07 15:20:26.957 Bypass authentication: No
. 2010-01-07 15:20:26.957 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-01-07 15:20:26.957 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-01-07 15:20:26.957 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-01-07 15:20:26.957 SFTP Bugs: -,-
. 2010-01-07 15:20:26.957 Return code variable: Autodetect; Lookup groups: Yes
. 2010-01-07 15:20:26.957 Shell: default, EOL: 0
. 2010-01-07 15:20:26.957 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-01-07 15:20:26.957 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-01-07 15:20:26.957 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-01-07 15:20:26.957 Cache directory changes: Yes, Permanent: Yes
. 2010-01-07 15:20:26.957 DST mode: 1
. 2010-01-07 15:20:26.957 --------------------------------------------------------------------------
. 2010-01-07 15:20:26.973 Looking up host "server"
. 2010-01-07 15:20:26.988 Connecting to 10.55.55.111 port 22
. 2010-01-07 15:20:26.988 Server version: SSH-2.0-WS_FTP-SSH_7.1
. 2010-01-07 15:20:26.988 Using SSH protocol version 2
. 2010-01-07 15:20:26.988 We claim version: SSH-2.0-WinSCP_release_4.2.5
. 2010-01-07 15:20:26.988 Using Diffie-Hellman with standard group "group14"
. 2010-01-07 15:20:26.988 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-01-07 15:20:27.301 Host key fingerprint is:
. 2010-01-07 15:20:27.301 ssh-rsa 1024 a3:5d:a2:db:85:67:b7:be:60:c7:6b:1d:7c:44:87:e7
. 2010-01-07 15:20:27.301 Initialised AES-256 CBC client->server encryption
. 2010-01-07 15:20:27.301 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-01-07 15:20:27.301 Initialised AES-256 CBC server->client encryption
. 2010-01-07 15:20:27.301 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-01-07 15:20:27.488 Using name "user".
. 2010-01-07 15:20:27.504 Prompt (6, SSH password, , &Password: )
. 2010-01-07 15:20:27.504 Using stored password.
. 2010-01-07 15:20:27.504 Sent password
. 2010-01-07 15:20:27.520 Access granted
. 2010-01-07 15:20:27.520 Opened channel for session
. 2010-01-07 15:20:27.723 Started a shell/command
. 2010-01-07 15:20:27.723 --------------------------------------------------------------------------
. 2010-01-07 15:20:27.723 Using SFTP protocol.
. 2010-01-07 15:20:27.723 Doing startup conversation with host.
> 2010-01-07 15:20:27.723 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-01-07 15:20:27.723 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-01-07 15:20:27.723 SFTP version 4 negotiated.
. 2010-01-07 15:20:27.723 We will use UTF-8 strings when appropriate
. 2010-01-07 15:20:27.723 Getting current directory name.
. 2010-01-07 15:20:27.723 Getting real path for '.'
> 2010-01-07 15:20:27.723 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-01-07 15:20:27.785 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2010-01-07 15:20:27.785 Real path is '/'
. 2010-01-07 15:20:27.785 Listing directory "/".
> 2010-01-07 15:20:27.785 Type: SSH_FXP_OPENDIR, Size: 10, Number: 267
< 2010-01-07 15:20:27.785 Type: SSH_FXP_HANDLE, Size: 11, Number: 267
> 2010-01-07 15:20:27.785 Type: SSH_FXP_READDIR, Size: 11, Number: 524
< 2010-01-07 15:20:27.801 Type: SSH_FXP_NAME, Size: 190, Number: 524
> 2010-01-07 15:20:27.801 Type: SSH_FXP_READDIR, Size: 11, Number: 780
< 2010-01-07 15:20:27.801 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2010-01-07 15:20:27.801 Status code: 1
> 2010-01-07 15:20:27.801 Type: SSH_FXP_CLOSE, Size: 11, Number: 1028
. 2010-01-07 15:20:27.801 Startup conversation with host finished.
. 2010-01-07 15:20:29.379 Cached directory change via "virtual_folder" to "/virtual_folder".
. 2010-01-07 15:20:29.379 Getting current directory name.
. 2010-01-07 15:20:29.379 Listing directory "/virtual_folder".
> 2010-01-07 15:20:29.379 Type: SSH_FXP_OPENDIR, Size: 23, Number: 1291
< 2010-01-07 15:20:29.379 Type: SSH_FXP_STATUS, Size: 17, Number: 1028
. 2010-01-07 15:20:29.379 Discarding reserved response
< 2010-01-07 15:20:29.379 Type: SSH_FXP_HANDLE, Size: 11, Number: 1291
> 2010-01-07 15:20:29.379 Type: SSH_FXP_READDIR, Size: 11, Number: 1548
< 2010-01-07 15:20:29.395 Type: SSH_FXP_NAME, Size: 377, Number: 1548
> 2010-01-07 15:20:29.395 Type: SSH_FXP_READDIR, Size: 11, Number: 1804
< 2010-01-07 15:20:29.395 Type: SSH_FXP_STATUS, Size: 28, Number: 1804
< 2010-01-07 15:20:29.395 Status code: 1
> 2010-01-07 15:20:29.395 Type: SSH_FXP_CLOSE, Size: 11, Number: 2052
. 2010-01-07 15:20:30.035 Changing directory to "History".
. 2010-01-07 15:20:30.035 Getting real path for '/virtual_folder/History'
> 2010-01-07 15:20:30.035 Type: SSH_FXP_REALPATH, Size: 31, Number: 2320
< 2010-01-07 15:20:30.035 Type: SSH_FXP_STATUS, Size: 17, Number: 2052
. 2010-01-07 15:20:30.035 Discarding reserved response
< 2010-01-07 15:20:30.035 Type: SSH_FXP_STATUS, Size: 57, Number: 2320
< 2010-01-07 15:20:30.035 Status code: 4, Message: 2320, Server: Folder not found: /virtual_folder/History, Language:
* 2010-01-07 15:20:30.035 (ECommand) Error changing directory to 'History'.
* 2010-01-07 15:20:30.035 Cannot get real path for '/virtual_folder/History'.
* 2010-01-07 15:20:30.035 General failure (server should provide error description).
* 2010-01-07 15:20:30.035 Error code: 4
* 2010-01-07 15:20:30.035 Error message from server: Folder not found: /virtual_folder/History
* 2010-01-07 15:20:30.035 Request code: 16
. 2010-01-07 15:20:33.520 Closing connection.
. 2010-01-07 15:20:33.520 Sending special code: 12
. 2010-01-07 15:20:33.520 Sent EOF message