Pureftpd authentication failed

robinko

New member
Joined
Mar 4, 2021
Messages
2
So I have been fighting PureFTPd for a bit now but I can't get it to work. My setup is running on Debian 10 and I installed PureFTPd with custombuild 2.0.
When I try to login with any real or virtual user I get the following error :

Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Command: USER user
Response: 331 User user OK. Password required
Command: PASS ***************
Response: 530 Login authentication failed
Error: Critical error: Could not connect to server

However I am 100% certain the password is correct. Even when I switch to SFTP (which is not ran by PureFTPd) I can login without a problem.

Afterwards I have checked the log files in /var/log/messages which showed me:

server pure-ftpd: (?@censored_ip) [INFO] New connection from censored_ip
server pure-ftpd: (?@censored_ip) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
server pure-ftpd: (?@censored_ip) [WARNING] Authentication failed for user [user]
server pure-ftpd: (?@censored_ip) [INFO] Logout.

which seems like a normal log when the password is incorrect but it is correct for sure...

I also tried changing MinUID in /etc/pure-ftpd.conf from 99 (after fresh install) to 14, since this seemed to be needed for virtual users. Also no luck...

The users can be found in /etc/proftpd.passwd so that shouldn't be the issue either.

To be sure I also temporarily disabled the firewall (csf & lfd) but also this did not help...

I'm not sure where else I can take a look. Does anybody have any advice?
 
I have enabled some more logging and I have found the issue. The port forwarding rules within the network only forward port 21. All users work from within the network now only the SSH users don't work but that is ok, they can use SFTP. This can be closed.
 
Back
Top