FTP is the way to upload, download, edit, manage and organize all your website’s files stored remotely in your CentOS server.
Using FTP is the perfect choice because the server we are talking about here is the one with no cPanel or any other control panel software so you don’t have access to those files and folders via web-based File Manager.
In this page, I’ll tell you how to install vsftpd, a very secure FTP software so you’ll have access to your server via FTP with strongest protection available.
So follow along the video below or go to the steps even below..
HOW TO INSTALL VSFTPD
Step 1 – Now issue this command syntax to install vsftpd:
|1||yum install vsftpd|
You may also need to confirm the install by answering Y.
Once done you’ll see the “Complete!” message.
Step 2 – Next, also install free ftp client software on your server by issuing this command:
|1||yum install ftp|
Again, hit Y if asked to confirm.
Step 3 – That’s it. Basically you’ve installed all necessary ftp software on your server. But you may also need to setup several configuration following the next section.
HOW TO SETUP VSFTPD CONFIGURATION
Step 1 – First thing first, open “vsftpd.conf” file, the file that holds all vsftpd configuration. In this tutorial I’ll use Nano editor.
Step 2 – Disable ftp anonymous login. To do that, find the line below and make sure its value is “no”.
Looks like this:
Step 3 – Now find this “chroot_local_user” line and uncomment (remove the # symbol) and make sure its value is YES.
So it looks similar like this:
What does “chroot_local_user=YES” mean? If this line is enabled, all the local users will be jailed within their chroot. It means access to any other part of the server will be denied.
Step 4 – That’s it. Well, basically there are several other configurations you can change / adjust according on your like. But what I’ve mentioned above are the most common settings ensuring your server to get the basic security level for its ftp connection. So once done editing, save that file by hitting Control+O then Control+X to exit.
Step 5 – Finally, restart the vsftpd service by using this command:
|1||service vsftpd restart|
It should return with OK message in the “starting vsftpd for vsftpd”.
That’s all. Now you can access your server via ftp connection. You can firstly try via your browser by typing:
in my case it looks like this:
Alternatively, you can use your favorite ftp client like FileZilla.