Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用已成功创建 vsftpd 连接的 Linux 服务器,但我无法检索文件
LIST您的屏幕截图显示,在切换到被动模式 ( ) 后尝试传输某些内容 ( ) 时连接超时PASV。在我看来,您的防火墙可能没有正确配置为被动模式,因此阻止了连接。
LIST
PASV
尝试允许所有 IP 地址或 FTP 客户端 IP 地址在端口 40000 到 50000 上的传入(入站)连接。配置防火墙是特定于防火墙的,因此,我无法为您提供有关如何执行此操作的详细说明。
sudo ufw 允许 40000:50000/tcp
sudo 服务 vsftpd 重启