Ubuntu (EC2) 上 vsftpd 的被动模式问题

3br*_*him 5 amazon-ec2 amazon-web-services vsftpd

我遵循了所有指南,但就是无法通过 ftp 登录。

...
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
local: 21 remote: 21
229 Entering Extended Passive Mode (|||12028|)
550 Failed to open file.
221 Goodbye.
Run Code Online (Sandbox Code Playgroud)

甚至在 iptables 中也有它:

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:12000:12100
Run Code Online (Sandbox Code Playgroud)

我已将minmax端口设置vsftpd.conf12000-12100并通过 AWS 控制台启用了相同的端口。

小智 0

某些路由器会阻止标准端口上的常规 ftp。切换到非标准端口为我解决了这个问题。