For Operating Systems
User avatar
By adm_3ch
CentOS 6/Redhat 6

Step 1 – First, install vsftpd. Do this by issuing the following command while logged in via SSH
  • Before installing any software it’s always best practice to ensure that your system is up to date.  Please see and follow the following guide to update your server.
Code: Select all
yum install vsftpd
Step 2 – FTP is technically now functional on the server, however it’s advised to make the following security changes to the configuration file for vsftpd. (located at /etc/vsftpd/vsftpd.conf)
  • anonymous_enable=NO
  • local_enable=YES
  • write_enable=YES
  • chroot_local_user=YES
  • allow_writeable_chroot=YES
Once you make these changes you need to restart the vsftpd service:
Code: Select all
service vsftpd restart
Step 3 – You should now set the vsftpd service to always start at boot using the following command:
Code: Select all
chkconfig vsftpd on
Step 4 – The final step is allowing the default FTP port (21) through the firewall. Do this by using the following command:
Code: Select all
iptables -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
Step 5 – Now restart the firewall using the following command:
Code: Select all
service iptables restart
You should now be able to access the server via FTP using the IP address of the server, the username and password that you created, and port 21. Please note that the user will only have access to their specific home directory.

Intel® Xeon 2.53GHz [...]