How To Install VSFTPD To Your VPS Server

Here we are going to deploy an FTP server to a bare-bones VPS Servers and configure it. FTP is wide" />
Cheap VPS Servers

Deploying FTP To Your VPS Server

posted on May 07, 2015 under VPS FTP Upload SFTP CentOS VPS Server VPS Servers
How To Install VSFTPD To Your VPS Server

Here we are going to deploy an FTP server to a bare-bones VPS Servers and configure it. FTP is widely known as being very insecure, If you don't have to use an FTP program like this try to run an SFTP program instead.

Step One — Installing vsftpd

We can install vsftpd via SSH, login to your VPS Server type the following command and hit enter.

sudo yum install vsftpd



Now we also need to install the FTP client that works with it, so that we can connect to an the FTP server, like above just type the below command hitting (y) when asked to in the console:

sudo yum install ftp


Once the files finish downloading, vsftpd will be on your VPS. Generally speaking, the virtual private server is already configured with a reasonable amount of security. However, it does provide access to anonymous users,which, unless absolutely needed should always be turned off.

Step Two — Configure VSFTP


Once VSFTP is installed, you can adjust the configuration.

Open up the configuration file:
sudo vi /etc/vsftpd/vsftpd.conf



One primary change you need to make is to change the Anonymous_enable to No:

anonymous_enable=NO



Prior to this change, vsftpd allowed anonymous, unidentified users to access the VPS's files.

After that, uncomment the local_enable option, changing it to yes.

local_enable=YES



Finish up by uncommenting command to chroot_local_user. When this line is set to Yes, all the local users will be jailed within their chroot and will be denied access to any other part of the server.

chroot_local_user=YES



Finish up by restarting vsftpd:

sudo service vsftpd restart



In order to ensure that vsftpd runs at boot, run chkconfig:

chkconfig vsftpd on


Step Three — Access the FTP server


Once you have installed the FTP server and configured it to your liking, you can now access it.

You can reach an FTP server in the browser by typing the domain name into the address bar and logging in with the appropriate ID. Keep in mind, you will only be able to access the user's home directory.

ftp://example.com

Step 4 — Adding A User

To add a new user to the FTP Server just type the following commands below;

useradd test
passwd test


Barebones VPS Servers are just £2.00 per month at First2Host