How do I install vsftpd?
Simply type the following command as a superuser (root):
Code: Select all
# yum install vsftpd
Turn on vsftpd ftp service
Type the following command:
Code: Select all
# chkconfig vsftpd on
Type the following command:
Code: Select all
# service vsftpd start
Type the following command:
Code: Select all
# service vsftpd stop
Type the following command:
Code: Select all
# service vsftpd restart
Open /etc/sysconfig/iptables file, enter:
Code: Select all
# vi /etc/sysconfig/iptables
Code: Select all
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
Code: Select all
# service iptables start
Type the following command:
Code: Select all
$ ftp localhost
$ ftp ftp.server.com
$ ftp 202.54.1.1
The default configuration file is /etc/vsftpd/vsftpd.conf file. You can open file with vi text editor:
Code: Select all
# vi /etc/vsftpd/vsftpd.conf
Code: Select all
$ man vsftpd.conf