freeCodeCamp/guide/english/linux/install-and-configure-ftp-s.../index.md

1.2 KiB

title
Install and configure FTP server in Redhat/Centos Linux

Install and configure FTP server in Redhat/Centos Linux

FTP stands for File Transfer Protocol. It was written by Abhay Bhushan and published as RFC 114 on 16 April 1971. It is supported by all operating system and browsers. It is built on a client-server architecture.

Install and configure FTP server in Redhat/Centos Linux

Step 1: We will use localhost for our machine to setup ftp server.

Step 2: Install vsftpd (very secure FTP daemon) package.

yum install -y vsftpd

Step 3: Start FTP Server when system on.

systemctl enable vsftpd.service

Step 4: Checking the status of ftp server

systemctl status vsftpd.service

Step 5: Configure vsftpd package. We will edit
/etc/vsftpd/vsftpd.conf

Change the line which contain anonymous_enable=NO to anonymous_enable=YES
This will give permit any one to access FTP server with authentication.
Change the following to YES
local_enable=YES
write_enable=YES<br>

Step 6: Start FTP Server
systemctl start vsftpd.service

Step 7: Install FTP Client
yum install -y lftpd

Step 8: Connect ftp to localhost
lftp localhost