Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.
Because it is actively supported, and it was always designed with security in mind, and the code is always re-audited as new kind of vulnerabilities are discussed.
How To Install Pure-FTPd on CentOS 8
1. First add EPEL yum repository your system.
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/e/epel-release-8-8.el8.noarch.rpm
2.Installing Pure-FTPd on CentOS
# yum install pure-ftpd -y
3. Configuring Pure-FTPd server.
Type the following command to edit Pure-FTPd configuration file.
# nano /etc/pure-ftpd/pure-ftpd.conf
Make sure you have this options:
# If you want simple Unix (/etc/passwd) authentication, uncomment this UnixAuthentication yes
ChrootEveryone yes NoAnonymous yes # PureDB user database (see README.Virtual-Users) PureDB /etc/pure-ftpd/pureftpd.pdb # Automatically create home directories if they are missing CreateHomeDir yes
Finally, save Pure-FTPD user database.
# pure-pw mkdb
Add a virtual user.
# pure-pw useradd ftpuser -u user -g group -d /var/www/yourdomain.com/public_html
4. Start service and enable the service to start on boot.
# systemctl start pure-ftpd #systemctl enable pure-ftpd
and enable to open ftp port 21 on centos using firewalld
# firewall-cmd --permanent --zone=public --add-service=ftp # firewall-cmd --reload
test open port
# lsof -i:21
5.Now open up your favorite ftp client like FileZilla then enter the detail:
- Host : Enter your server’s IP or hostname (if you’ve added A record to it in your DNS).
- Username : Use what you defined in step 4 section B above.
- Password : Use what you defined in step 5 section B above.
- Port : use Port 21
Once done hit the Connect button. screenshot:
You’ll finally see the “Status:Directory listing successful” message indicating you are now logged in.
Now you know How To Install Pure-FTPd on CentOS 8. You should be able to login to your server via Pure-FTPd and start transferring files.