How to configure ftp.exe to use passive mode (PASV)?

C

curiousgeorge408

How can I configure ftp.exe to use passive mode (PASV)?

By ftp.exe, I mean \windows\system32\ftp.exe, which I execute by Start
Run > cmd > ftp. (I call this MS ftp.)

On a whim, I have set Passive FTP in Internet Explorer (Tools >
Internet Options > Advanced). Concomitantly, "use PASV" is set to
"yes" in the Registry under HKEY_USERS\S-1-...\Software\Microsoft
\FTP. All to no avail. (Should it also be set somewhere else?)
 
B

blank

(e-mail address removed) wrote in (e-mail address removed):
How can I configure ftp.exe to use passive mode (PASV)?

By ftp.exe, I mean \windows\system32\ftp.exe, which I execute by Start

On a whim, I have set Passive FTP in Internet Explorer (Tools >
Internet Options > Advanced). Concomitantly, "use PASV" is set to
"yes" in the Registry under HKEY_USERS\S-1-...\Software\Microsoft
\FTP. All to no avail. (Should it also be set somewhere else?)

From all accounts I have seen and my own experience, the ftp.exe that comes
with XP does not support PASV.
For this and other reasons (better scripting, etc.), I use ncftp -
available for free from http://www.ncftp.com
 
T

Tim Slattery

the ftp command line is:

ftp> quote pasv

and yes it is supported, it'll respond w/ "227 entering passive mode

Yeah, but....
That tells the server to go into passive mode, the client still knows
nothing about it. According to
http://www.iss.net/security_center/advice/Services/FTP/PASV/default.htm

<QUOTE>
Many FTP clients do not support PASV transfers. For example, the
standard FTP.EXE built into Windows does not support this feature. The
user can still do a "quote PASV", which will tell the server to enter
PASV mode, but the client still will not work in this mode. (This is a
common problem, users enter "quote PASV" but things still don't work).
</QUOTE>
 
C

curiousgeorge408

Yeah, but....
That tells the server to go into passive mode, the client still knows
nothing about it. According to
http://www.iss.net/security_center/advice/Services/FTP/PASV/default.htm

Thanks for the confirmation. I appreciate this pointer.

I had tried "quote pasv" previously, and a network trace showed that
it does send PASV, and the ftp server does respond with "entering
passive mode".

But subsequent transmissions from the ftp client were not right, and
the FTP dir, get or put command timed out.
 
T

Tim Slattery

I had tried "quote pasv" previously, and a network trace showed that
it does send PASV, and the ftp server does respond with "entering
passive mode".
But subsequent transmissions from the ftp client were not right, and
the FTP dir, get or put command timed out.

Sounds right to me. The server is in passive mode, so it's sent the
client a port number to connect to, and is waiting for the client to
connect. The client is in active mode, so it's waiting for the server
to connect to it. And everybody waits forever.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top