Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / General Topics 1 / October 2010

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
curiousgeorge408@hotmail.com - 24 Oct 2008 00:53 GMT
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?)
blank - 24 Oct 2008 01:35 GMT
curiousgeorge408@hotmail.com wrote in news:9fa53e10-e2f2-40e5-9596-
77820884018d@2g2000hsn.googlegroups.com:

> How can I configure ftp.exe to use passive mode (PASV)?
>
[quoted text clipped - 5 lines]
> "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
frodo@theshire.net - 24 Oct 2008 16:20 GMT
the ftp command line is:

ftp> quote pasv

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

good luck
Tim Slattery - 24 Oct 2008 17:28 GMT
>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>

Signature

Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt

curiousgeorge408@hotmail.com - 24 Oct 2008 18:43 GMT
> fr...@theshire.net wrote:
> > the ftp command line is:
[quoted text clipped - 5 lines]
> 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.
frodo@theshire.net - 24 Oct 2008 20:44 GMT
> > fr...@theshire.net wrote:
> > > the ftp command line is:
[quoted text clipped - 5 lines]
> > 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.

Well, I did some investigating and here's what I found.  My ftp script has
had the "quote pasv" command line in it for years.  I use it every day to
sync w/ a unix box, and it works fine.  As I recall I _HAD_ to add that
line to get it to work, because of a firewall at my end (ZA).  Back then
(years ago) I connected via a dial-up modem.

For grins I just took the pasv line out of the script, and everything
still works just fine; I still have ZA running too, but now I go thru my
LAN port to a FIOS router; I imagine the (modern) router's NAT function is
handling the Active Mode connection properly.

reference:  http://www.slacksite.com/other/ftp.html

But, bottom line, with or without it my ftp sessions work just fine. I am
using the (primitive) MS-provided win-xp ftp client. There are many
(better) ftp clients out there, perhaps you should try another.  Or
perhaps your router needs a setting tweak.

Sorry I couldn't be more help.
Tim Slattery - 24 Oct 2008 21:04 GMT
>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.

Signature

Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt

Stu1000 - 05 Oct 2010 10:55 GMT
>>I had tried "quote pasv" previously, and a network trace showed that
>>it does send PASV, and the ftp server does respond with "entering
[quoted text clipped - 7 lines]
>connect. The client is in active mode, so it's waiting for the server
>to connect to it. And everybody waits forever.

You could try using the passive ftp version of FTP.exe from
http://www.passive-ftp.com

cheers

Stu
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2012 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.