windows – 200 PORT命令成功.考虑使用PASV. 425无法建立连接

我在Ubuntu 12.04 LTS中设置了FTP服务器.

现在,当我尝试通过命令行ftp.exe从Windows 7连接到FTP服务器时,我成功连接但我无法获取目录列表.我收到错误

200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
在使用ls之前尝试使用passive命令.

从FTP客户端,要检查FTP服务器是否支持被动模式,请在登录后键入quote PASV.

以下是具有被动模式打开和关闭的vsftpd服务器的连接示例

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,1,173,104).
ftp>

相关文章

windows无法连接到wifi怎么办
文章浏览阅读2.2k次,点赞6次,收藏20次。在我们平时办公工作...
文章浏览阅读1k次。解决 Windows make command not found 和...
文章浏览阅读3.2k次,点赞2次,收藏6次。2、鼠标依次点击“计...
文章浏览阅读1.3w次。蓝光版属于高清版的一种。BD英文全名是...
文章浏览阅读974次,点赞7次,收藏8次。提供了更强大的功能,...