How to fix ftp connection time out error!

How to resolve the error

!connection failed xx.xx.xxx.xxx – connection timed out
!connectio:error 0
PORT xxx,xxx,x,x,x,xxx
500 Illegal PORT command
!Failed “port”
!Retrieve of folder listing failed (0)

The above error happens when we are able to connect but the folder listing fails!

Resolution:
Login to the WHM==> FTP Server Selection
change the FTP server to Pure-FTPD ==> save

Now ssh into the server as root
open the pure-ftp conf file /etc/pure-ftpd.conf
Find the FTP port no: used
And find  the “PassivePortRange” and add the port range
for eg :

PassivePortRange 30000 35000

Save and quit

Now goto csf(firewall) config file, add the ftp port along with the passive port range

eg :

# Allow incoming TCP ports
TCP_IN = “20,22,25,53,80,110,143,443,465,587,993,995,2001,2077,2078,2082,2083,2086,2087,2095,2096,30000:35000″

Restart csf & Pure-ftpd

Related posts:

  1. pure-ftpd fails to start in a OpenVZ server
  2. Error while installing Magento Blue theme.
  3. Horde webmail : Content Encoding Error (content_encoding_error)
  4. Why are you getting 500 internal server error on your php pages
  5. How to fix the jftp error in joomla JFTP::store: Bad response – Warning! – Failed to move file.

One Response

Thanks so much for this! I was having this problem and had no clue how to fix it!

After much tinkering, I finally got it working.

Comment Form

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later