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

Turn
on vsftpd ftp service
Type the following command:
# chkconfig vsftpd on
# chkconfig vsftpd on
How
do I start vsftpd ftp server?
Type the following command:
# service vsftpd start
# service vsftpd start
How
do I stop vsftpd ftp server?
Type the following command:
# service vsftpd stop
# service vsftpd stop
How
do I restart vsftpd ftp server?
Type the following command:
# service vsftpd restart
# 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
# 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
$ 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
# vi /etc/vsftpd/vsftpd.conf
0 comments:
Post a Comment