How to Install FTP Server on CentOS 7

centos logo

In this article, we will have explained the necessary steps to install and configure FTP Server on CentOS 7. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

FTP (File Transfer Protocol) is a traditional and widely used standard tool for transferring files between a server and clients over a network, especially where no authentication is necessary (permits anonymous users to connect to a server). We must understand that FTP is unsecure by default, because it transmits user credentials and data without encryption.

Install FTP Server on CentOS 7

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Installing FTP Server on CentOS.

Install vsftpd server is straight forward, just run the following command in the terminal:

Once the package is installed, start the vsftpd daemon and enable it to automatically start at boot time:

Next, in order to allow access to FTP services from external systems, we have to open port 21, where the FTP daemons are listening as follows:

Step 3. Configuring FTP Server.

Configuration file will be in /etc/vsftp folder. Vsftpd.conf is the configuration file of FTP server:

Set the following options with these corresponding values:

Congratulation, you have learned how to install and configure FTP Server on CentOS 7. If you have any question, please leave a comment below.