您的位置:首页 > 编程语言 > PHP开发

FTP 命令模式下 PASV OR PORT

2013-03-07 15:50 357 查看
我们经常会在DOS命令模式下使用FTP的一些命令,不过,在进行Upload/Download时,经常会碰到一个命令的反馈:

use PORT or PASV first.

请问如何操作呢?

按常里,我们会根据提示,输入PASV或者PORT指令.其实这样输入是无法进行的.

使用的方法如下:

如果需要切换到PORT模式:quote PORT;

同样,如果需要PASV模式:quote PASV即可.

此文档参考:http://www.linuxforums.org/forum/servers/19666-vsftpd-server-425-use-port-pasv-first.html

原文:

The FTP server wants to know whether to use a port-mode channel or passive-mode data channel. Most clients will set this up for you transparently (and generally choose passive 'cos it's newer and better). To send a command to the server you use the 'quote'
command. Hence if you type:

quote PASV

then it should all work nicely. As an aside, if you type 'remotehelp' then it should show you all the commands that the server can receive - all these can be used with the 'quote' command.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: