ftp works, sftp fails?

Core FTP client questions and answers
Post Reply
f_1_j
Posts: 4
Joined: Fri Jun 27, 2008 2:34 pm

ftp works, sftp fails?

Post by f_1_j »

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'm using version 2.1 build 1570. 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
jacken
Posts: 11
Joined: Wed May 14, 2008 11:53 pm

Post by jacken »

Where did you get build 1570? I didn't think it is released yet.
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.
Post Reply