- Plesk for Linux
Cannot connect to FTP:
CONFIG_TEXT: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing
Passive ports are not configured:
# grep "PassivePorts" /etc/proftpd.conf
# grep "PassivePorts" /etc/proftpd.d/*
Or ip_conntrack_ftp module is missing:
# lsmod | grep conntrack_ftp
With enabled debug in FileZilla the following rows can be gotten:
CONFIG_TEXT: Command: PASV **<-- switching the mode from active to passive
Response: 227 Entering Passive Mode (203,0,113,2,138,181). <-- the connection on port 35509 is tried to be established, however this port is not configured
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Misconfiguration of the FTP server.
- Connect to the server using SSH.
- Configure the passive ports range according to instructions from the article: How to configure a passive ports range for ProFTPd on a server behind a firewall.