CentOS / Red Hat Linux Install VSFTPD FTP Server
Q. How do I configure and install an FTP server in CentOS / RHEL 5 / Fedora Linux server?
A. 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
WARNING! These examples open your computer to insecure ftp protocol. If possible use SFTP ftp secure sever which is inbuilt into OpenSSH SSHD server.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 202.54.1.1
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
See see vsftpd.conf man pages for all configuration options.
$ man vsftpd.conf
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Linux Failure (4322): Configuration Initialization Failed - Error and Solution
- Install Language support in CentOS 5 or Red Hat Enterprise Linux
- Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository
- Redhat enterprise Linux / CentOS installing kernel source code
- yum problems: Skip Packages With Broken Dependencies When Upgrading System
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /etc/vsftpd/vsftpd.conf, chkconfig command, command ftp, configuration options, fedora linux, file transfer protocol, firewall service, ftp client, ftp daemon, ftp port, ftp server, ftp service, install ftp server, iptables command, secure file transfer protocol, server type, service command, sysconfig, transfer protocol ftp, vsftpd, xinetd




May 22nd, 2008 at 10:29 pm
ho3…
how about proftpd vs vsftpd?
i wanna install this kind of application soon…
June 11th, 2008 at 7:18 am
pls send the details…. configuration of ftp server in linux