CentOS / Red Hat Linux Install VSFTPD FTP Server

How do I configure and install an FTP server in CentOS / RHEL 5 / Fedora Linux server?

CentOS / RHEL server comes with vsftpd which is the Very Secure File Transfer Protocol (FTP) daemon. The server can be launched via a xinetd or as standalone mode, in which case vsftpd itself will listen on the network port 21.

How do I install vsftpd?

Simply type the following command as a superuser (root):
# yum install vsftpd


Turn on vsftpd ftp service

Type the following command:
# chkconfig vsftpd on

How do I start vsftpd ftp server?

Type the following command:
# service vsftpd start

How do I stop vsftpd ftp server?

Type the following command:
# service vsftpd stop

How do I restart vsftpd ftp server?

Type the following command:
# service vsftpd restart

Open FTP port

Open /etc/sysconfig/iptables file, enter:
# vi /etc/sysconfig/iptables
Append following line to open ftp port 21 before REJECT line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
Save and close the file. Restart the firewall:
# service iptables start

Test ftp server

Type the following command:
$ ftp localhost
$ ftp ftp.server.com
$ ftp YOURIP

How do I configure vsftpd server?

The default configuration file is /etc/vsftpd/vsftpd.conf file. You can open file with vi text editor:
# vi /etc/vsftpd/vsftpd.conf
  • 59 Users Found This Useful
Was this answer helpful?

Related Articles

How to install and configure OpenVPN

This howto will show you how to install OpenVPN inside an OpenVZ VPS on Ubuntu.OpenVZ supports...

How to change your VPS date/time?

Since we have a lot of people from all around the world almost anyone will need to have his VPS...

How to enable PPP (PPPD) on a OpenVZ VPS

In order to activate PPP (PPPD) on your OpenVZ VPS log into Hypanel, go to Machine...

How to enable swap inside your VPS?

A lot of people are asking about swap in an OpenVZ VPS. Usually swap is not good but in some...

How to enable TUN/TAP on OpenVZ VPS?

In order to activate TUN/TAP on your OpenVZ VPS log into Hypanel, go...