- Plesk for Linux
- Plesk for Windows
One of the following error messages appears, when connecting to a server via FTP in active mode:
CONFIG_TEXT: Status: Connecting to 203.0.113.2:21...
Status: Connection attempt failed with "ETIMEDOUT - Connection attempt timed out".
Error: Could not connect to server
CONFIG_TEXT: ftp: connect: Connection timed out
CONFIG_TEXT: ftp: connect: Connection refused
CONFIG_TEXT: 425 Unable to build data connection: Connection timed out
CONFIG_TEXT: 425 Unable to build data connection: Permission denied
CONFIG_TEXT: Error: Connection timed out after 20 seconds of inactivity
CONFIG_TEXT: Timeout detected. (data connection)
Could not retrieve directory listing
Error listing directory '/'
It is possible to connect to FTP directly from the server via localhost:
# ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD Server (ProFTPD) [127.0.0.1]
Name (localhost:root): ftp_user
331 Password required for ftp_user
230 User ftp_user logged in
Remote system type is UNIX.
Using binary mode to transfer files.
It is not possible to disable the option Use passive mode at Tools & Settings > Backup Manager > FTP Storage Settings :
PLESK_ERROR: Error: Unable to access to the storage: Transport error: unable to list directory: Curl error: (30) FTP: command PORT failed: Last FTP request: PORT 172,16,185,194,169,76 Last FTP response: 500 Illegal PORT command
Make sure you have entered the correct storage settings. You can check them independently with the command:
curl -v -P - --ssl -k -u user 'ftp://example.com//user/server3//'
Backups to this FTP server fail with the following error:
CONFIG_TEXT: Error: Unable to access to the storage: Transport error: unable to list directory: Curl error: (7) Couldn't connect to server: Last FTP request: Last FTP response: Make sure you have entered the correct storage settings. You can check them independently with the command: curl -v -P - --ssl -k -u ftp_user 'ftp://203.0.113.2//Backup/'
Port 21 is filtered/blocked on the server, with which an FTP connection cannot be established:
# nmap 203.0.113.2 -p 21
PORT STATE SERVICE
21/tcp filtered ftp-data
TCP port 20, which is used as FTP data port, is filtered/closed by a firewall:
# nmap -Pn 203.0.113.2 -p 20
Starting Nmap 6.47 ( http://nmap.org ) at 2016-05-14 02:41 NOVT
Nmap scan report for 203.0.113.2
Host is up.
PORT STATE SERVICE
20/tcp filtered ftp-data
FTP data transfer channel cannot be established because TCP ports 21 and/or 20 is/are filtered.
Open ports 20 and 21:
If after opening the FTP ports in a server firewall these ports are still blocked, make sure that:
There are no other rules that prohibit FTP connection in Plesk at Tools & Settings > Firewall.
A third-party firewall, in case it is used, is not blocking the connection to the FTP ports.
An intermediary firewall between a Plesk server and the Internet is not filtering the FTP ports. Contact your Internet Service Provider (ISP) for assistance.