ftp works, sftp fails?

Report client bugs
Post Reply
f_1_j
Posts: 4
Joined: Fri Jun 27, 2008 2:34 pm

ftp works, sftp fails?

Post by f_1_j »

Sorry for the cross-post (also posted under Client-General), not sure which is more appropriate.

Whenever I try to transfer files using sftp, the RETR command omits the last slash between the directory and the file name.

An example of the difference is shown in the FTP and SFTP sessions below.

I had the problem using the latest stable version, so also tried the beta version 2.1 build 1570 and had the same issue. I used the quick connect in both cases and most (all?) the defaults.

Any ideas?

TIA

=================================
#### FTP - works

Resolving test...
Connect socket #1816 to 111.222.33.44, port 21...
220 test FTP server ready.
USER fred
331 Password required for fred.
PASS **********
230 User fred logged in.
SYST
215 UNIX Type: L8 Version: SUNOS
PWD
257 "/export/home/fred" is current directory.
Keep alive off...
PASV
227 Entering Passive Mode (111,222,33,44,111,166)
LIST
Connect socket #1796 to 111.222.33.44, port 28582...
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
CWD /export/home/fred/java1.5
CWD /export/home/fred
Transferred 17,609 bytes in 0.008 seconds
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (111,222,33,44,31,15)
RETR dead.letter
Connect socket #2324 to 111.222.33.44, port 7951...
150 Opening BINARY mode data connection for dead.letter (37 bytes).
226 Transfer complete.
dead.letter - 37 bytes transferred
MDTM dead.letter
213 20080204210629
Transfer time: 00:00:00 :set nobackup

---------------------------
[color=red]#### sftp - doesn't work[/color]

Resolving test...
test connecting...
SSH-2.0-Sun_SSH_1.1
client -> any
server -> any
....
ssh-rsa
PWD
Current directory is '/export/home/fred'
Keep alive off...
CWD /export/home/fred/java1.5
CWD /export/home/fred
Transferred 17,902 bytes in 0.016 seconds
[color=red][size=18]RETR /export/home/freddead.letter[/size][/color]
Server error: No such file or folder
dead.letter - 0 bytes transferred
f_1_j
Posts: 4
Joined: Fri Jun 27, 2008 2:34 pm

work-around

Post by f_1_j »

Following a work-around from a different posting, I was able to get this working by using the 'putty compatible sftp' setting.
stv
Posts: 5
Joined: Mon Jun 18, 2007 7:40 pm

this is still broken

Post by stv »

Same problem with me, as this other guy. FTP works, but SFTP removes the slash between the directory name and file name, so the FTP server says file not found. Checking the "Putty" box fixed it.

Seems like this bug should have been repaired by now, it was reported here over six months ago!

From the log:
RETR /home/stvbackup.tar.gz
Server error: No such file or folder

Note, that should be /home/stv/backup.tar.gz -- missing a slash.
shercorp
Posts: 2
Joined: Mon Aug 03, 2009 6:01 am

Post by shercorp »

where can I see that putty box that you are referring?
I'm encountering the same problem.

thanks..
Waidophimbaponi
Posts: 3
Joined: Thu Jun 10, 2010 8:32 am

ftp works sftp fails

Post by Waidophimbaponi »

229 Entering Extended Passive Mode when get or put command with ftp,

to solve it: enter EPSV

ftp> epsv
EPSV/EPRT on IPv4 off.
[url=http://roepos.com/text.php?article=micr ... expiration]more...[/url]
Post Reply