In our last tutorial on File Sharing, we discussed Network File System (NFS). Now, we will learn to install FTP (aka SFTP or Very SecureFTP) in this tutorial. But first, we must know what is FTP
The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network. It is built on a client-server model architecture and uses separate control and data connections between the client and the server.
Recommended Read: Simple Linux Backups with Rsync command
Also Read: Essential Linux Commands You Should Know
Since FTP is rather insecure, we must either use our FTP over SSL/TLS or we can use the best alternative to FTP i.e. VSFTP. It's designed to have the strongest protection against FTP vulnerabilities & can be used to share data globally.
Install FTP on Linux
VSFTP can be installed using the following command on Centos/RedHat
One thing to consider after installing VSFTP is that if we want anonymous-login on our ftp or not.
Firstly, we will discuss how to configure with anonymous disabled & later we will also discuss enabling anonymous-login. Now, let's move on to configuring VSFTP. Open configuration file for vsftp
then disable anonymous access, change the following parameter to no
and change the following parameter to yes
Then, restart the server to implement changes
That’s it, our secure FTP is ready. Now let's try to access it
Accessing VSFTP through the browser
Accessing VSFTP through Command line
To use VSFTP in the Command line, use the following commands
So this completes our tutorial on how to install FTP on Linux, next up is configuring FTP anonymous access 'enabled'. If having any queries/comments, use the comment box down below.