Friday, January 3, 2014

How to install FTP on CentOS

Here are the steps to install FTP on CentOS

Step 1: Install FTP
sudo yum install vsftpd
sudo yum install ftp

Step 2: Modify vsftpd.conf
cp -p vsftpd.conf vsftpd.conf.orig
sudo vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
chroot_local_user=YES

Step 3: Add FTP User
useradd ftptest
passwd a1963219a

Step 4: Start vsftpd on reboot
chkconfig vsftpd on

Step 5: Change firewall rule
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT


Step 6: Restart vsftpd
sudo service vsftpd restart
Step 7: Test FTP
ftp example.com

References:
http://www.cyberciti.biz/faq/rhel-centos-linux-install-ftp-server/



No comments:

Post a Comment