(Plesk for Linux) 配置被动 FTP 模式

概要

默认情况下,Plesk 只允许主动 FTP 连接。这可能会导致客户无法通过 FTP 连接服务器。为了避免此情况,我们建议启用被动 FTP。

In this topic, you will learn how to enable passive FTP mode in Plesk for Linux.

若要在 Plesk for Linux 中启用被动 FTP 模式,请如下操作:

  1. 通过 SSH 以 root 用户的身份登录服务器。

  2. 创建 /etc/proftpd.d/55-passive-ports.conf 文件,将以下各行添加到文件中,然后保存更改:

    <Global>
    PassivePorts 49152 65535
    </Global>
    
  3. 运行以下命令:

    systemctl restart xinetd
    

Now your Plesk server accepts passive FTP connections. If you have installed the Plesk Firewall and switched on its default configuration, you need to add a firewall rule allowing passive FTP:

  • 方向 :接收

  • 操作 :允许

  • 端口 :TCP 49152-65535

  • :(任何主机)

    image-passive-ftp-rule