Page 1 of 1

Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Wed Aug 05, 2015 9:36 pm
by rsantiago
Wondering if someone can help me out here since I've exhausted my options. WingFTP is set up on Server1, the user's home directory is mapped to a shared folder on a a different server in the same domain (Server2). I created a local user account that is identical to the user account I created in WingFTP. Granted the WingFTP service account, ftp user account, and same local account full rights...even tried the 'everyone' group. I've created home directories to remote servers before in WingFTP, but all those prior to this one were just standard ftp over port 21.

I can connect to the new site and see a test file I had created in that remote home directory manually (directly on the server, no ftp/sftp/ssh). Problem seems to be when trying to actually upload a file to the site. Works if I use standard ftp over port 21, but not if I use the sftp/ssh over port 22. When using that latter method, it does not write to the directory and generates a "Server cannot write to a given path" message in my sftp client.

I did check with the Firewall guy and he verified port 22 is open on Server2 (the remote server) and that the two servers can access each other's folder structures.

Permissions are set on both Server1 and Server2 to full control for Everyone, the local ftp user, and the wingftp service account. Permissions on the folder when viewed via the sftp client show all 7's (full authority). So I'm at a loss.

Any ideas?

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Fri Aug 07, 2015 4:01 am
by FTP
OK, you had better provide the related server logs, and which SFTP client did you use? you can also try other SFTP client software like FTP Rush or Filezilla.

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Tue Aug 11, 2015 7:32 pm
by rsantiago
Thanks for the reply. Appreciate any help on it. I have two sets of logs here...one from an SSH connection attempting to upload a simple txt document. The second is a standard ftp transfer test of the same file. As I've mentioned, I can see the directory structure and contents when connected via ssh (port 22), but cannot upload although full rights are enabled and verified port 22 is available.

Transfer over Port 22 Attempt:
[01] Tue, 11 Aug 2015 12:08:33 (0000007) SSH session receive user name:InsideSalesUSR
[01] Tue, 11 Aug 2015 12:08:33 (0000007) SSH session receive password of user InsideSalesUSR
[01] Tue, 11 Aug 2015 12:08:33 (0000007) SSH authentication complete successfully.
[01] Tue, 11 Aug 2015 12:08:33 (0000007) The user InsideSalesUSR login successfully via SSH.
[07] Tue, 11 Aug 2015 12:08:33 (0000007) SSH_FXP_INIT: client ssh version 3
[08] Tue, 11 Aug 2015 12:08:33 (0000007) SSH_FXP_VERSION: server ssh version 3
[07] Tue, 11 Aug 2015 12:08:33 (0000007) SSH_FXP_REALPATH: path .
[08] Tue, 11 Aug 2015 12:08:33 (0000007) SSH_FXP_NAME: path .
[07] Tue, 11 Aug 2015 12:08:33 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:34 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_STAT: path: /InsideSales/.
[08] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:43 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/.
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/.
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STAT: path: /InsideSales/.
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:44 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_STAT: path: /InsideSales/iis2dmz.txt.
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_STAT: path: /InsideSales/.
[08] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_HANDLE: path /InsideSales/
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_NAME: 2 items have been found
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_READDIR: directory /InsideSales
[08] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_STATUS: End of file
[07] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_CLOSE: path /InsideSales
[08] Tue, 11 Aug 2015 12:08:45 (0000007) SSH_FXP_STATUS: /InsideSales has been closed.
[02] Tue, 11 Aug 2015 12:09:00 (0000007) Closed session,disconnected from xxxx


Transfer over Port 21 attempt:
[02] Tue, 11 Aug 2015 12:09:01 (0000008) Connected from xxxx (local address xxxxx, port 21)
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 220 Wing FTP Server 3.4.5 ready...
[03] Tue, 11 Aug 2015 12:09:01 (0000008) USER InsideSalesUSR
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 331 Password required for InsideSalesUSR
[03] Tue, 11 Aug 2015 12:09:01 (0000008) PASS **********
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 230 User InsideSalesUSR logged in.
[03] Tue, 11 Aug 2015 12:09:01 (0000008) SYST
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 215 UNIX Type: L8
[03] Tue, 11 Aug 2015 12:09:01 (0000008) PWD
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 257 "/" is current directory.
[03] Tue, 11 Aug 2015 12:09:01 (0000008) CWD /InsideSales/
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 250 CWD command successful. "/InsideSales" is current directory.
[03] Tue, 11 Aug 2015 12:09:01 (0000008) PASV
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 227 Entering Passive Mode (xxxxx,0)
[03] Tue, 11 Aug 2015 12:09:01 (0000008) LIST
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 150 Opening data channel for directory list.
[04] Tue, 11 Aug 2015 12:09:01 (0000008) 226 Transfer ok.
[03] Tue, 11 Aug 2015 12:09:04 (0000008) PWD
[04] Tue, 11 Aug 2015 12:09:04 (0000008) 257 "/InsideSales" is current directory.
[03] Tue, 11 Aug 2015 12:09:04 (0000008) TYPE A
[04] Tue, 11 Aug 2015 12:09:04 (0000008) 200 Type set to A
[03] Tue, 11 Aug 2015 12:09:04 (0000008) PASV
[04] Tue, 11 Aug 2015 12:09:04 (0000008) 227 Entering Passive Mode (xxxxxx,4)
[03] Tue, 11 Aug 2015 12:09:05 (0000008) STOR iis2dmz.txt
[04] Tue, 11 Aug 2015 12:09:05 (0000008) 150 Opening BINARY mode data connection for file transfer.
[04] Tue, 11 Aug 2015 12:09:05 (0000008) 226 File received ok.Transfer bytes:3004Bytes;Average speed is:2.934KB/s
[03] Tue, 11 Aug 2015 12:09:05 (0000008) MDTM 20150728192130 iis2dmz.txt

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Thu Aug 13, 2015 3:45 am
by FTP
It seems your WingFTP version is not recent, so please upgrade to the latest version 4.5.3 first.

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Mon Oct 19, 2015 4:55 pm
by rsantiago
Sorry for the late reply, but I finally managed to upgrade it to 4.5.3. However, issue persists. Standard FTP over port 21 transfers just fine. Errors when SSH over port 22 is used with same 'cannot write to given path' error on the two sftp clients I tested with. Here is the most current log output of a failed attempt to transfer a simple txt file.
[02] Mon, 19 Oct 2015 09:44:18 (0010230) Connected from <hidden> (local address HIDDEN, port 22)
[01] Mon, 19 Oct 2015 09:44:18 (0010230) SSH session receive user name:<USERID>
[01] Mon, 19 Oct 2015 09:44:18 (0010230) SSH session receive password of user <USERID>
[01] Mon, 19 Oct 2015 09:44:18 (0010230) User/password authentication OK.
[01] Mon, 19 Oct 2015 09:44:18 (0010230) SSH authentication completed successfully. Client information:SSH-2.0-CoreFTP
[01] Mon, 19 Oct 2015 09:44:18 (0010230) The user <USERID> logged in successfully via SSH.
[07] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_INIT: client SSH version 3
[08] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_VERSION: server SSH version 3
[07] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_REALPATH: path .
[08] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_NAME: path .
[07] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_OPENDIR: directory /InsideSales/
[08] Mon, 19 Oct 2015 09:44:18 (0010230) SSH_FXP_STATUS: "/InsideSales/": No such file.
[07] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_STATUS: End of file
[07] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_CLOSE: path /
[08] Mon, 19 Oct 2015 09:44:19 (0010230) SSH_FXP_STATUS: / has been closed.
[02] Mon, 19 Oct 2015 09:44:31 (0010231) Connected from <hidden> (local address HIDDEN, port 22)
[07] Mon, 19 Oct 2015 09:44:48 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /.
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: End of file
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_CLOSE: path /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: / has been closed.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /.
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: End of file
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_CLOSE: path /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: / has been closed.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /.
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: End of file
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_CLOSE: path /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: / has been closed.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /.
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: End of file
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_CLOSE: path /
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STATUS: / has been closed.
[02] Mon, 19 Oct 2015 09:44:49 (0010232) Connected from <hidden> (local address HIDDEN, port 22)
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /IS_sftperrors.txt.
[07] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_STAT: path: /.
[08] Mon, 19 Oct 2015 09:44:49 (0010230) SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.
[07] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_OPENDIR: directory /
[08] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_HANDLE: path /
[07] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_NAME: 2 items have been found
[07] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_READDIR: directory /
[08] Mon, 19 Oct 2015 09:44:50 (0010230) SSH_FXP_STATUS: End of file

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Tue Oct 20, 2015 4:14 am
by FTP
OK, actually it is caused by the client side, because the sftp client send "SSH_FXP_STAT" before uploading, but when you use the Windows shared folder, you can't get the folder permission via the Windows API "_wstati64", so the server replies with: SSH_FXP_ATTRS: Filesize: 0, UserID: 0, GroupID: 0, Permissions: 0, Last modify time:0.

Then if the sftp client gets the folder permission with value "0", it won't upload the file, so that's the result. But you know most sftp client won't send "SSH_FXP_STAT" before uploading, so most sftp client can upload file when using the Windows shared folder.

Anyway, we will try to make an improvement in the server side, then WingFTP can be compatible with such sftp client.

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Tue Oct 20, 2015 3:34 pm
by rsantiago
Thank you very much for that information!!! Given that info, I tested by using the full path to the remote folder rather than the shared path. For example, changing it from //RemoteServer/SharedFolder/ to //RemoteServer/DriveLetter$/Folder/.

That full path workaround worked perfectly. I was able to upload documents to the destination remote server over SSH (log extract below).

Thank you again and I look forward to the release version that addresses this behavior for shared folders.

[07] Tue, 20 Oct 2015 08:28:07 (0014300) SSH_FXP_OPEN: path /IS_sftperrors.txt
[07] Tue, 20 Oct 2015 08:28:07 (0014300) Transfer starting for /IS_sftperrors.txt
[08] Tue, 20 Oct 2015 08:28:07 (0014300) SSH_FXP_HANDLE: /IS_sftperrors.txt has been opened.
[07] Tue, 20 Oct 2015 08:28:07 (0014300) SSH_FXP_CLOSE: path /IS_sftperrors.txt
[07] Tue, 20 Oct 2015 08:28:07 (0014300) File Transfer OK, 2 KB has been received,0.000 KB/S
[08] Tue, 20 Oct 2015 08:28:07 (0014300) SSH_FXP_STATUS: /IS_sftperrors.txt has been closed.
[07] Tue, 20 Oct 2015 08:28:07 (0014300) SSH_FXP_SETSTAT: path: /IS_sftperrors.txt.

Re: Cannot use SFTP/SSH to remote folder but FTP is fine.

Posted: Fri Oct 23, 2015 6:07 am
by FTP
Thanks for your information! And we will improve it in the next release.