Biblioteca de cunoștințe

Installing FTP, VSFTPD, on CentOS 6; Creating FTP user  Tipărire

When first installing CentOS on your server (And most distributions of Linux), ftp is not installed by default. We will be installing FTP and VSFTP on this server.

The first two letters of vsftpd stand for "very secure" and the program was built to protect against possible FTP vulnerabilities.

Step One—Install vsftpd

You can quickly install vsftpd on your virtual private server in the command line:

yum install vsftpd (If using Ubuntu, it will be: sudo yum install vsftpd )

We also need to install the FTP client, so that we can connect to an FTP server:

yum install ftp (If using Ubuntu, it will be: 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. We want to disable that now to avoid any problems by configuring VSFTP

Configuring VSFTP


Once VSFTP is installed, you can modify the configuration file.

Open up the configuration file:

vi /etc/vsftpd/vsftpd.conf (If using Ubuntu, it will be sudo vi /etc/vsftpd/vsftpd.conf )

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


(Please remember, you are using "vi". In order to modify the contents of this file, you need to switch to insert mode. When you find the section you want to modify, first press the letter "i" on your keyboard. You will see it now change to insert mode, and will be able to make the changes we are describing in this step and the following ones)

After that, uncomment the local_enable option, changing it to 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:

service vsftpd restart (If using Ubuntu, it will be sudo service vsftpd restart )

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

chkconfig vsftpd on

You have now installed and configured FTP and VSFTPD. Now, you may want to add FTP users so that you (or they) can access the server via ftp

 passwd NAMEHERE

You will replace "NAMEHERE" with the username you want to create for the ftp user. That's it! Now, try logging into your server via ftp on a remote server and you're good to go

Răspunsul a fost util?

Articole similare

Installing Softaculous on your VPS or Dedicated Server
Before starting the installation make sure ionCube Loaders are enabled. For that go to WHM and...
Converting an Addon Domain to a Stand alone cPanel
Addon domain turned into a separate cPanel Download the content of your addon domain to your...
How to Install FFMPEG on CentOS (6.3, 6.4)
Ok, so you just got a VPS or Dedicated Server and want to set it up with FFMPEG...
How to install Lubuntu Desktop on your Ubuntu VPS
You have just ordered a VPS from with the Ubuntu OS. However, by default the...
How to Install MP4Box
To install MP4Box, you would do the following:cd /usr/local/src/wget...

Powered by WHMCompleteSolution