Install FTP in 2 minutes.
Warning:- if you don’t have Linux experience. Please don’t mess with live servers.
FTP stands for File Transfer Protocol.
It is used to transfer files between two computers over the internet.
The Default port is 21.
FTP connection depends on two communication channels ie. client and server (client-server protocol)
A command channel is used for controlling the conversation and a data channel for transmitting file content.
First, we need to install FTP-server on the server.
Installation in Centos
yum install vsftpd
Note:- First check vsftpd connection
Configure the vsftpd configure file
#disable the anonymous users
#this will allow to authenticate and login using the system users (with their credentials)
#Enable the write option so that they can upload and download files
#Defining their root directory as mentioned for every user ( ftp users to their respective directory)
Check firewall status
~>sudo systemctl status firewalld
Add FTP port to firewall
~>sudo firewall-cmd –zone=public –add-port=21 –permanent
Check the Selinux
Edit selinux configuration to change the enforcing mode to disable
#change the enforcing to disabled
For Ubuntu, Installation command is only the difference all other steps are similar to centos configuration
sudo apt-get install vsftpd
There are 3 methods to connect ftp server
1. Web Browser
2. Teminal command Line
FTP command Line option