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

Step 1 – Install vsftpd. Do this by issuing the following command while logged in via SSH.
yum install vsftpd
Code: Select all
yum install vsftpd
  • You’ll be prompted to confirm the installation by pressing “y”, if you’d like to avoid this you can use the -y option at the end of the command.
Step 2 – FTP is 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.conf)
  • anonymous_enable=NO
  • local_enable=YES
  • write_enable=YES
  • chroot_local_user=YES
  • allow_writeable_chroot=YES
Once you make these changes, restart the vsftpd service using the following command:
systemctl restart vsftpd
Code: Select all
systemctl restart vsftpd
Step 3 – You should now set the vsftpd service to always start at boot using the following command:
Code: Select all
systemctl enable vsftpd
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
firewall-cmd --permanent --add-port=21/tcp
Step 5 – Now restart the firewall using the following command:
Code: Select all
firewall-cmd --reload
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 [...]