Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"200 PORT command successful. Consider using PASV." What does it mean?

 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to redhat 4 from windows machine using ftp. I got the message "230 Login successful.". Then I try ls, dir commands, there I got the message as follows

ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.


What does it mean?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess your question is specifically about "Consider using PASV". It asks you to use passive FTP mode. You can enable it by simply typing the command "passive" in the FTP progam. For example:
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to list all the files, but it shows the message as shown above. As you suggested, I gave command "passive". It shows invalid command. What I can do to copy data from unix machine to windows machine using ftp.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Passive is an option, not a requirement. I think the common Linux FTP servers all support passive mode these days. I thought Windows FTP clients did, too, unless you're running an old client.

I believe Passive FTP requires some extra firewall configuration because it makes freer use of network ports, but you're better off googling for "passive ftp iptables" or something if you want an answer by somebody who actually knows.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
minal --

By the way, are you sure that the directory you're listing actually has any files in it?
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Ernest for pointing my mistake. Directory was empty. Now I am getting right results.

Thanks Jesper Young and Tim Holloway for giving valuable information about "Passive FTP".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic