I am trying to create an FTP account for one of my websites on cyberpanel.
PUREFTPD is on and working.
Ports 21 and 22 are open on the server as well as in the Firewall (CSF). Both ports are listed as being listened to, including on firewall level.
When I try to login to the FTP, either normal (Port 21) or SFTP (port 22), I get the following error: Connection closed without indication. The connection attempt was rejected. The server may be down, or your network may not be properly configured.
This seems to be the problem (when I inquire about pure-ftpd status):
Starting Pure-FTPd FTP server…
Can’t open PID file /var/run/pure-ftpd.pid (yet?) after start: No such file or directory
(?@?) [DEBUG] Couldn’t load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
Started Pure-FTPd FTP server.
It is odd because the /var/run/pure-ftpd.pid does exist and there is a PID value inside that file as well.
What am I doing wrong here?
Any help would be appreciated.
I am on Centos 7, Litespeed Enterprise.
Any further detailed logs for this error?
The domain you are trying to connect via ftp is having valid ssl issued?
Hello! Thank you for answering.
SSL is valid. Emails are getting in and website is accessible (librairiezbookstore.com). The site is a HSTS preload site and everything is green (HSTS Preload List Submission). So it is not an SSL issue for either the mail server or the website itself.
In the FTP logs, however, there are tons of these:
INFO: SSL Socket Shutdown.
Error: (use_ssl == true): Request packet version was invalid!
Could not read request from client IP ADDRESS, bailing out…
Yesterday, I updated cyberpanel to see if it would help. Still had the same issue. Reinstalled pure-ftpd and it got rid of the previous two errors but still connection is impossible:
systemctl status pure-ftpd
● pure-ftpd.service - Pure-FTPd FTP server
Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2022-01-04 16:27:54 EST; 16h ago
Main PID: 595797 (pure-ftpd)
└─595797 pure-ftpd (SERVER)
systemd: Starting Pure-FTPd FTP server…
systemd: Started Pure-FTPd FTP server.
So no more error but still connection refused when using FTP client.
In the CSF firewall, on ports being listened to:
21 tcp 4/6 - 595797 root pure-ftpd (SERVER) /usr/sbin/pure-ftpd