What is FTP and How to install ?

What is FTP and How to install ? 1

Install FTP in 2 minutes.

Warning:- if you don’t have Linux experience. Please don’t mess with live servers.

    1. What is FTP?
    1. How to setup FTP(configure FTP) on your server?
    1. How to use FTP?

What is FTP?

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.


How to setup FTP on your server?

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

vim /etc/vsftpd/vsftpd.conf

#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

vim /etc/selinux/config

#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

How to use FTP connection on the client side?

There are 3 methods to connect ftp server
1. Web Browser

ftp://[email protected]/

2. Teminal command Line

ftp ftp.techouse.co.in

What is FTP and How to install ? 2
3. Using graphical applications such as filezilla (download filezilla)

What is FTP and How to install ? 3


FTP command Line option

~>man ftp



I love helping beautiful people like you. I love hanging out with my dogs.

You may also like...

1 Response

  1. April 26, 2018

    […] Create user in Linux […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: