Bootstrap FreeKB - FTP and Secure FTP (FTPS, SFTP) - Install PureFTPd on Linux
FTP and Secure FTP (FTPS, SFTP) - Install PureFTPd on Linux


On a Debian distribution (Mint, Ubuntu), the apt-get install command can be used to install PureFTPd. On a Red Hat distribution (CentOS, Fedora, Red Hat), the dnf install or yum install command can be used to install PureFTPd.

dnf install pure-ftpd

 

If pure-ftpd cannot be found, you may need to add the EPEL (Extra Packages for Enterprise Linux) repo.

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

 

The ps command can be used to determine if your system is using init or systemd. If PID 1 is init, then you will use the service command. If PID 1 is systemd, then you will use the systemctl command.

If your system is using systemd, use the systemctl command to start and enable Pure-FTPd.

systemctl enable pure-ftpd
systemctl start pure-ftpd
systemctl status pure-ftpd

 

If your system is using init, use the chkconfig and service commands to start and enable Pure-FTPd.

chkconfig pure-ftpd on
service pure-ftpd start
service pure-ftpd status

 

If there is a firewall, such as iptables or firewalld, allow port 21 for FTP connections or port 22 for SFTP connections.

firewall-cmd --add-protocol=ftp --permanent
firewall-cmd --reload

 

At this point, you should be able to make an anoymous, unsecured connection to Pure-FTPd.

ftp> open ftp.example.com
Connected to ftp.example.com (10.14.115.77).
220---------- Welcome to Pure-FTPd [provsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 23:34. Server port: 21
220-IPV6 connections are also welcome on thi server.
220 You will be disconnected after 15 minutes of inactivity.
Name (ftp.example.com:john.doe):

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 22e89b in the box below so that we can be sure you are a human.