What is FTP and How to install ?
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.
====================================
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 #check #disable the anonymous users anonymous_enable=NO #this will allow to authenticate and login using the system users (with their credentials) local_enable=YES #Enable the write option so that they can upload and download files write_enable=YES #Defining their root directory as mentioned for every user ( ftp users to their respective directory) chroot_local_user=YES
Check firewall status
~>sudo systemctl status firewalld
Add FTP port to firewall
~>sudo firewall-cmd --zone=public --add-port=21 --permanent
Check the Selinux
~>getenforce enforcing
Edit selinux configuration to change the enforcing mode to disable
vim /etc/selinux/config #change the enforcing to disabled 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
3. Using graphical applications such as filezilla (download filezilla)
================================
FTP command Line option
~>man ftp
1 Response
[…] Create user in Linux […]