Linux, DevOps and Cloud Expert at Linux Guru !

Vsftpd [Very Secure File Transport Protocol Daemon] is a fast and secure file transfer service for linux/Unix.  Ftp server is used to transfer and exchange files between computers over network, In this article i will explain you to how to install and configure ftp server in Linux machine.

Update your server yum repository and install VSFTPD.

# yum check-update
# yum -y install vsftpd

Open VSFTPD configuration file and make changes as below.
# vim /etc/vsftpd/vsftpd.conf

Change anonymous login yes to no.

Uncomment below lines:


Add below line to the end of file.


Restart VSFTPD service and make enable to automatic start on boot.

# systemctl restart vsftpd.service
# systemctl enable vsftpd.service

Allow ftp service and port ftom firewall.

# firewall-cmd --permanent --add-service=ftp
# firewall-cmd --permanent --add-port=21/tcp
# firewall-cmd --reload

Create ftp user as root is not allow by default.

useradd -m ftp -s /sbin/nologin
passwd ftp

Now you can login from any system with ftp client.

By VishalVyas

No comments:

Post a Comment