Article ID: 128430, created on Feb 23, 2016, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux


  1. It is not possible to get a directory listing by FTP using Secured TLS.

  2. The connection establishes, but the following error appears:

    Error: Failed to retrieve directory listing
  3. Connection to FTP from localhost works fine.

    Status: Connecting to
    Status: Connection established, waiting for welcome message...
    Status: Initializing TLS...
    Status: Verifying certificate...
    Status: TLS connection established.
    Status: Connected
    Status: Retrieving directory listing...


The root cause is in external or server firewall configuration.


  1. Diagnose the issue by connecting to FTP server from localhost using lftp:

    lftp :~> set ssl:verify-certificate no
    lftp :~> set passive-mode yes
    lftp :~> set ssl-allow true
    lftp :~> open
    lftp> login user <PASSWORD>
    lftp user@> debug
    lftp user@> cd
    ---- Connecting to ( port 21
    cd ok, cwd=/
    lftp user@> ls
    ---- Connecting data socket to ( port 31868
    ---- Data connection established
    ---- Got EOF on data connection
    ---- Closing data socket
    drwxr-xr-x   2 user     psacln       4096 Jul 16 15:48 error_docs
    drwxr-xr-x   2 root     root         4096 Jul 16 15:50 ftp
    drwxr-xr-x   6 user     psaserv      4096 Jul 16 15:48 httpdocs
    drwxr-xr-x   2 user     root         4096 Jul 17 03:32 logs

    Directory listing works fine from localhost.

  2. Add the passive ports range by adding the following line to /etc/proftpd.conf:

    PassivePorts 61000 63000
  3. Check the firewall and open passive port range.
  4. Additionally, please refer to

Search Words

ftp firewall

FTP Secured TLS does connect but does not obtain directory listing.


Failed to retrieve directory listing

742559b1631652fadd74764ae8be475e 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 e335d9adf7edffca6a8af8039031a4c7 2a5151f57629129e26ff206d171fbb5f

Email subscription for changes to this article
Save as PDF