≡ Menu

Linux: Install and Configure vsftpd

On CentOS, you have the yum command which can be used to install packages from the web. VSFtpd is an FTP server which listens on port 21 and allows you to transfer files between your client machine and your FTP server. Note that OpenSSH also comes with an FTP functionality, and is more secure than FTP. So check if you have OpenSSH installed and use it instead of FTP.

To install VSFTPD on CentOS, Fedora, Red Hat:

yum install vsftpd

On Debian, Ubuntu:

apt-get install vsftpd

Now that you have vsftpd installed, you must configure it.

The vsftpd.conf file is located in the following directory:


Open it in your favorite editor and disable the anonymous logins option:


Anonymous FTP login poses a very strong security threat and you should always disable it.

Now you must restart the FTP daemon:

service vsftpd restart

If you want vsftpd to run everytime your system starts, you must add it to the startup list using the following command:

[root@server ~]# chkconfig vsftpd on
[root@server ~]# chkconfig --list | grep vsftpd
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off

Now that you have vsftp setup and configured, you can check if FTP service is available on your machine:

ftp localhost

Comments on this entry are closed.