How to Install and Configure Secure FTP Server in CentOS 7

By | February 28, 2018

FTP(File Transfer Protocol) is widely used standard tool for transferring files between a server and a client over a network.By default,FTP server is unsecure because it transmits user credentials and data without encryption

Here, we discussed about the installation and configuration of secure FTP server – VSFTP

Note :– By running all the commands in this tutorial,you need root privilage

Step-1: Installing Secure FTP server.

Installing vsftpd server byrunning the below command

yum install vsftpd


Step-2: Start and Enable service

Installation process has completed,Service will be disabled first,So we need to startand enable it manually by running the below command

systemctl start vsftpd

systemctl enable vsftpd

Step-3: Allow FTP port number on Firewall

To allow port number 21 by running below command

firewall-cmd –zone=public –permanent –add-port=21/tcp

To allow Ftp service by running below command

firewall-cmd –zone=public –permanent –add-service=ftp

Once allowed the services,services will reload to activate your services

firewall-cmd –reload

Step-4: Configuring FTP server

To edit the configuration file,Configuration file path is as below

you can edit the configuration file like as




Step-5: Restart the serivce

Now, you can restart the services

systemctl restart vsftpd

Category: VPS

Leave a Reply

Your email address will not be published. Required fields are marked *