can not login FTP

Started by gailclark80, January 24, 2018, 03:24:07 AM

Previous topic - Next topic

gailclark80

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?

24x7servermanagement

https://www.24x7servermanagement.com/
Server Management, Server Security, Server Monitoring.
India's Leading Managed Service Provider !!

dimkos

try with other FTP like Zilla, CuteFtp

Gogo

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.

rhunyady

I'm having the same problem and changing password or creating a new user account doesn't fix it!

paldig

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.