ftp in Windows command window

  • Thread starter Howard - JC Publishing
  • Start date
H

Howard - JC Publishing

I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.
 
B

Big_Al

Howard said:
I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.
Windows ftp does not support passive. Type help at the > prompt if you
wish. But Ftp has never supported mode changes. That's why so many
other free ftp programs are available. ie. Filezilla.
I have found sftp from 'move it freely' that is replacement for the
ftp.exe from MS. sftp is a secure ftp but is has commands to change
passive and active modes.
http://www.ipswitchft.com/products/...uments_worldwide_moveit55release-moveitfreely
 
A

~~Alan~~

Control Panel
Internet Options
Advanced
Use passive FTP (for firewall and DSL modem compatability)

~alan
 
T

Tim Slattery

~~Alan~~ said:
Control Panel
Internet Options
Advanced
Use passive FTP (for firewall and DSL modem compatability)

Does that option affect the command-line FTP program or just Internet
Explorer?
 
D

David H. Lipman

From: "Howard - JC Publishing" <[email protected]>

| I need to run ftp through the Windows CMD window. That works fine except I
| need to change to PASV [passive] mode. How di I change to that setting?

| Thank you.


FTP PUT or FTP GET ?
 
A

~~Alan~~

I had a problem a while back using both IE and CMD. This corrected my
problem but I do not remember if it corrected it in both places. What have
you got to loose??

~alan
 
T

Tim Slattery

David H. Lipman said:
From: "Howard - JC Publishing" <[email protected]>

| I need to run ftp through the Windows CMD window. That works fine except I
| need to change to PASV [passive] mode. How di I change to that setting?

| Thank you.


FTP PUT or FTP GET ?

Shouldn't matter. If you're behind a NAT router neither command will
work in active mode. Neither will a directory listing, for that
matter.
 
T

Timothy Daniels

Tim Slattery said:
David H. Lipman said:
:

| I need to run ftp through the Windows CMD window.
| That works fine except I need to change to PASV
| [passive] mode. How di I change to that setting?


FTP PUT or FTP GET ?

Shouldn't matter. If you're behind a NAT router neither
command will work in active mode. Neither will a directory
listing, for that matter.


I'd like to access a local web server (and to ftp files to it)
over the office LAN. But there will be a router in the way.
Can you recommend a way to get through it?

*TimDaniels*
 
T

Tim Slattery

Timothy Daniels said:
Tim Slattery said:
David H. Lipman said:
:

| I need to run ftp through the Windows CMD window.
| That works fine except I need to change to PASV
| [passive] mode. How di I change to that setting?


FTP PUT or FTP GET ?

Shouldn't matter. If you're behind a NAT router neither
command will work in active mode. Neither will a directory
listing, for that matter.


I'd like to access a local web server (and to ftp files to it)
over the office LAN. But there will be a router in the way.
Can you recommend a way to get through it?

Well, there's always a router in the way, you can't get anyplace
without one.

If the router is doing NAT (Network Address Translation), then you
need to run your FTP client in passive mode. The built-in command-line
FTP client won't do that, but there are quite a few GUI clients that
will. CuteFTP and WS-FTP come to mind, there are many others.

If the router is not doing NAT, then your client can run in active
mode. Just about any client will do that.
 
D

David H. Lipman

From: "Tim Slattery" <[email protected]>

| "David H. Lipman said:
From: "Howard - JC Publishing" <[email protected]>
| I need to run ftp through the Windows CMD window. That works fine except I
| need to change to PASV [passive] mode. How di I change to that setting?
| Thank you.
FTP PUT or FTP GET ?

| Shouldn't matter. If you're behind a NAT router neither command will
| work in active mode. Neither will a directory listing, for that
| matter.

Sure, if we replace the MS FTP client...

Example:

wget --tries=2 --timeout=15 --passive-ftp ftp://ftp.site/file
 
R

ryanoasis

Howard - JC Publishing said:
I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.

after connected:
quote pasv

worked for me at least.
 
B

Big_Al

ryanoasis said:
Howard - JC Publishing said:
I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.

after connected:
quote pasv

worked for me at least.

Dang you're right. At least it says "entering passive". I
personnally don't have the issue but have seen it screw up on some of my
servers. I guess this is an undocumented feature? I've always used
another sftp.exe and it is documented to support PASV as a command.
Thanks, one more little mystery of life solved. That only took 2
years.... :)
 
R

ryanoasis

Yeah actually one of the ftp servers I use still won't allow me
to upload even after switching modes.

I am curious can you now upload, download , and view files?

I wanted to use windows ftp for batch purposes but I have found another ftp
server that doesn't force me to specify passive.

Big_Al said:
ryanoasis said:
Howard - JC Publishing said:
I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.

after connected:
quote pasv

worked for me at least.

Dang you're right. At least it says "entering passive". I
personnally don't have the issue but have seen it screw up on some of my
servers. I guess this is an undocumented feature? I've always used
another sftp.exe and it is documented to support PASV as a command.
Thanks, one more little mystery of life solved. That only took 2
years.... :)
 
B

Big_Al

ryanoasis said:
Yeah actually one of the ftp servers I use still won't allow me
to upload even after switching modes.

I am curious can you now upload, download , and view files?

I wanted to use windows ftp for batch purposes but I have found another ftp
server that doesn't force me to specify passive.

Big_Al said:
ryanoasis said:
:

I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.

after connected:
quote pasv

worked for me at least.
Dang you're right. At least it says "entering passive". I
personnally don't have the issue but have seen it screw up on some of my
servers. I guess this is an undocumented feature? I've always used
another sftp.exe and it is documented to support PASV as a command.
Thanks, one more little mystery of life solved. That only took 2
years.... :)

http://www.ipswitchft.com/products/...uments_worldwide_moveit55release-moveitfreely
I don't have a server issue to test this with, I just know that over the
years I've run into the issue and we finally skirted around the issue
with the above program. I write a window database application and
routinely have to export data and ftp to sites. So all over the US I
find one now and then that has this issue. My scripts are simple and
seem to work regarless of ftp.exe or sftp.exe except we add the PASV
command.
 

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