Failed to retrieve directory listing


Issue:

I got the above error while using Filezilla.

———————–

Response: 200 PORT command successful. Consider using PASV.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

————————

Solution:

1. Try after disabling the firewall.

2. If the issue still happens, please proceed with editing the filezilla configuration with following steps.

  • Open Filezilla, go to Edit -> Settings
  • Click on Connection -> FTP: Choose Active
  • Click on Connection -> FTP -> Active Mode: Select “Ask your operating system for the external IP address”
  • Click on Connection -> FTP -> Passive Mode: Choose Fall Back to Active Mode
  • Press OK.

3. Please have  a try now to connect using filezilla.

That’s all…!!!

Cannot see more than 10000 files in filezilla


Solution :

1. login to server as root user.

2.vi /etc/pure-ftpd.conf

3.Scroll through the document and locate the LimitRecursion setting

It might be like “ LimitRecursion 10000 8″

4. Change the value 10000 to 20000

5. save the file and exit

6. Restart the ftp service

7. Now try it

Thats all…….!!!!!!!

Issue : FTP Server hangs at MLSD command when accessing with Filezilla Command: USER ekbnet Response: 331 User ekbnet OK. Password required Command: PASS **************** Response: 230 OK. Current restricted directory is / Status: Connected Status: Retrieving directory listing… Command: PWD Response: 257 “/” is your current location Command: TYPE I Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227 Entering Passive Mode (199,58,184,201,241,34) Command: MLSD Error: Connection timed out Error: Failed to retrieve directory listing


Solution:

1.Login to the server using SSH as root user
2.Open the file /etc/pure-ftpd.conf
3.Scroll down and look for the line that says “PassivePortRange 30000 35000″
4.Make sure it is not commented out (with a # at the front)
5.Save the file
6.Restart the FTP server

Also check the whether the port range is open or not in /etc/csf/csf.conf

Vi /etc/csf/csf.conf

It should be like this “TCP_IN = “20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:50000”

After editing save and restart iptables

Thats all …!!!

Issue: Install proftpd in webmin/cpanel server


If the proftpd in not installed in the webmin/cpanel server You can install it using the following commands.

1.rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

2.yum install proftpd

3.yum install ftp

Blog Stats

  • 37,403 hits