Control Web Panel

WebPanel => FTP => Topic started by: gailclark80 on January 24, 2018, 03:24:07 AM

Title: can not login FTP
Post by: gailclark80 on January 24, 2018, 03:24:07 AM
My FTP often have such a problem.

Response:   331 User ****** OK. Password required
Command:   PASS *********
Response:   230 OK. Current restricted directory is /
Status:   Server does not support non-ASCII characters.
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 (*******)
Command:   MLSD
Error:   Connection timed out
Error:   Failed to retrieve directory listing

Please tell me how to fix this problem?
Title: Re: can not login FTP
Post by: 24x7servermanagement on January 24, 2018, 11:54:29 PM
Did you try these fixes?

https://stackoverflow.com/questions/24566692/filezilla-ftp-server-fails-to-retrieve-directory-listing (https://stackoverflow.com/questions/24566692/filezilla-ftp-server-fails-to-retrieve-directory-listing)
Title: Re: can not login FTP
Post by: dimkos on November 12, 2018, 02:44:39 PM
try with other FTP like Zilla, CuteFtp
Title: Re: can not login FTP
Post by: Gogo on November 13, 2018, 12:28:25 PM
That's the problem with FTP server itself, that has nothing to do with FileZila (even some different versions eg. older one will work fine, but changing FileZila is not fix for poor/incorrect FTP server configuration).

I fixed it on my server, but I can't remember what problem was cause it was a long time ago.
Title: Re: can not login FTP
Post by: rhunyady on December 07, 2018, 06:06:51 PM
I'm having the same problem and changing password or creating a new user account doesn't fix it!
Title: Re: can not login FTP
Post by: paldig on September 12, 2019, 08:58:12 AM
Hi,

For those who encounter such issues, you need to open FTP port range for passive connections from the CSF config file. Find your FTP config file, for example pure-ftpd will be /etc/pure-ftpd/pure-ftpd.conf, and search for PassivePortRange. Set it to something like this:

PassivePortRange          30000 30050

Restart the ftp server. Then go to /etc/csf/csf.conf and find 'Allow incoming TCP ports'. Add 30000:30050 at the end of the TCP_IN line, save the changes and restart csf. Now the connection should work.