windows - 200 端口命令成功。考虑使用 PASV。 425 建立连接失败

标签 windows ftp

我已经在 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 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> 

vsftpdpasv_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> 

关于windows - 200 端口命令成功。考虑使用 PASV。 425 建立连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19516263/

相关文章:

windows - 我可以在 netsh add urlacl 中添加端口范围吗?

C# 读取 Windows Mobile 宽带连接属性

linux - ftp 为发送的每个文件创建一个日志

windows - 如何在 Windows 上的 Windows 资源管理器中打开 ftp 链接?

c++ - 在 Windows 上拦截和后处理所有音频流

c# - 过早中止 BeginRead 和 BeginWrite 的正确方法?

windows - Powershell ISE 崩溃时在哪里存储选项卡?

PHP:copy() 以某种方式搞乱了文件权限

jenkins - 使用 Jenkins 管道通过 FTP 上传

ftp - java库做FTP操作