Opened 18 years ago

Last modified 17 years ago

#3025 closed Bug report

File transfer via SFTP is omitting the trailing backslash

Reported by: rgoshko Owned by:
Priority: high Component: Other
Keywords: Cc: rgoshko, dwsharp, naxxon, Alexander Schuch, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

When moving a file to our server (AIX 5.3) with SFTP it
seems the put command is not adding the trailing
backslash to the command line when sending the file so
when I send the file readme.txt to the directory
/home/rgoshko/tmp, I am getting a file called
tmpreadme.txt in /home/rgoshko.

you can see in the log that I attached that no file
appears in my ~/tmp directory.

This was seen on both versions 2.2.14 and 2.2.16.

Attachments (1)

filezilla-sftp-issue.log (13.4 KB ) - added by rgoshko 18 years ago.
log of SFTP'ing a file

Download all attachments as: .zip

Change History (8)

by rgoshko, 18 years ago

Attachment: filezilla-sftp-issue.log added

log of SFTP'ing a file

comment:1 by dwsharp, 18 years ago

From your log, here is your problem:

Server version: SSH-2.0-OpenSSH_3.7.1p2-pwexp26_krb5

There is a bug in OpenSSH 3.7.1 for AIX that causes the
problem you describe. Upgrading the server to OpenSSH 3.8.x
will fix the problem.

For details, see http://bugzilla.mindrot.org/show_bug.cgi?id=697

comment:2 by naxxon, 18 years ago

I have OpenSSH_3.8.1p1 and OpenSSL 0.9.6m

and I have the same problem, upgrading is not the solution.

comment:3 by naxxon, 18 years ago

I forgot to mention that winscp works fine.
I dont think this is an openssh problem.

comment:4 by dwsharp, 18 years ago

WinSCP works because it uses the SCP subsystem of SSH
instead of the SFTP subsystem, which is where the problem
lies. Check the sshd_config file on your AIX server and
make sure it is using the correct SFTP server (it is
probably /opt/ssh/etc/sshd_config). Make sure it says
(using the correct path on your system, of course)

Subsystem sftp
/opt/ssh/openssh-3.8p1/libexec/sftp-server

and not

Subsystem sftp
/opt/ssh/openssh-3.7.1p2/libexec/sftp-server

When we upgraded to 3.8.1, it did not remove the older
version and it did not update the above setting in the
sshd_config file, so while the normal SSH connections were
using 3.8.1, the SFTP connections were still using 3.7.1p2.

comment:5 by Alexander Schuch, 17 years ago

Can you please try again with latest version of FileZilla 2 or even better FileZilla 3 beta
to see if the problem still persists?

comment:6 by dwsharp, 17 years ago

Looks like it still occurs under both versions.

Log from 2.2.29:

Status: Starting download of /home/dwsharp/.gvimrc
Command: GET .gvimrc C:\Temp\.gvimrc FALSE
Response: /home/dwsharp.gvimrc: no such file or directory
Error: Download failed

Log from 3.0.0-beta2:

Status: Starting download of /home/dwsharp/.gvimrc
Command: get ".gvimrc" "C:\Temp\.gvimrc"
Error: /home/dwsharp.gvimrc: open for read: no such file or
directory

I got similar results for other files in other filesystems
on the server. This is an AIX 5.2 server (different than
the one used for my original comments below) with

/home/dwsharp $ ssh -V
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003

comment:7 by Tim Kosse, 17 years ago

As far as I know it's a bug in the server. Upgrading to the
most recent OpenSSH version should fix it. (4.4p1)

Note: See TracTickets for help on using tickets.