200 PORT命令成功。考虑使用PASV。 425无法建立连接 [英] 200 PORT command successful. Consider using PASV. 425 Failed to establish connection
问题描述
我在Ubuntu 12.04 LTS中安装了FTP服务器。
现在,当我尝试通过命令行 ftp.exe
,我连接成功,但无法获取目录列表。我得到错误
200 PORT命令成功。考虑使用PASV。
425无法建立连接。
尝试使用 / code>命令,然后使用
ls
。
在FTP客户端,检查FTP服务器是否支持被动模式,在登录后键入引用PASV
。
以下是一个vsftpd服务器的连接示例, and off
vsftpd
with pasv_enable = NO
:
#ftp localhost
连接到localhost.localdomain。
220(vsFTPd 2.3.5)
名称(localhost:john):anonymous
331请指定密码。
密码:
230登录成功。
远程系统类型是UNIX。
使用二进制模式传输文件。
ftp>报价PASV
550权限被拒绝。
ftp>
vsftpd
with pasv_enable = YES
:
#ftp localhost
连接到localhost.localdomain。
220(vsFTPd 2.3.5)
名称(localhost:john):anonymous
331请指定密码。
密码:
230登录成功。
远程系统类型是UNIX。
使用二进制模式传输文件。
ftp>报价PASV
进入被动模式(127,0,0,1,173,104)。
ftp>
I have setup FTP server in Ubuntu 12.04 LTS.
Now when when I try to connect to FTP server from Windows 7 through command-line ftp.exe
, I get successfully connected but I cannot get the list of directory. I get error
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
Try using the passive
command before using ls
.
From FTP client, to check if the FTP server supports passive mode, after login, type quote PASV
.
Following are connection examples to a vsftpd server with passive mode on and off
vsftpd
with pasv_enable=NO
:
# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.3.5)
Name (localhost:john): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote PASV
550 Permission denied.
ftp>
vsftpd
with pasv_enable=YES
:
# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.3.5)
Name (localhost:john): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote PASV
227 Entering Passive Mode (127,0,0,1,173,104).
ftp>
这篇关于200 PORT命令成功。考虑使用PASV。 425无法建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!