Hi all,
I am currently working on an FTP client, specifically for GLFTPd and
was attempting to use GLFTPDs support for the CPSV command on a
site-to-site transfer. This command is supported in many FTP daemons
and is listed in a couple of internet drafts.
May I simply substitute CPSV for PASV or do I have to give PROT and PBSZ commands?
I have tried:
1.)
CPSV
227 Entering Passive Mode (x,x,x,x,y,y)
PORT x,x,x,x,y,y
200
RETR and STOR
425 Can't open data connection
2.)
PBSZ 0 on both servers.
PROT P on both servers.
CPSV
227 Entering Passive Mode (x,x,x,x,y,y)
PORT x,x,x,x,y,y
200
RETR and STOR
425 Can't open data connection
Is there any specification about which server may take the CPSV
command (the STOR or the RETR server) or is there anything else that
you can see is wrong with this.
Bearing in mind that I have tried all of the above, what is the
correct usage of the CPSV command and its associated commands to send
a file between servers securely?
Martin |