I’ve practically spent the whole day trying to resolve the issue of not being able to access to my FTP server with Filezilla. Each time I tried to login, Filezilla hangs at the command that says MLSD and unable to proceed further. Actually, I’ve already login but just that the server refused to list the remote directory.
Contacted support at the hosting company and they tried every ways they could to get it resolved but to no avail. All we knew was that it could be due to some firewall issues in the server.
Previously it was working perfectly until my VPS was migrated to a new server and that was when the FTP issue cropped up. Finally, I’ve got no choice left but to access the server via SSH myself to check on the configuration files. What I’ve found out was that the PassivePortRange has been commented out from the file pure-ftpd.conf. So I just removed that comment and the FTP starts to flow again perfectly.
In case if you’re faced with similar problems of not being able to access your server as it hangs at the MLSD stage, this is what I’ve done:
- Login to the server using SSH as root user
- Open the file /etc/pure-ftpd.conf
- Scroll down and look for the line that says “PassivePortRange 30000 35000”
- Make sure it is not commented out (with a # at the front)
- Save the file
- Restart the FTP server
And it should work now!