Skip to content

Instantly share code, notes, and snippets.

@sn0rk64
Created May 14, 2019 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sn0rk64/b9fcf153370b6fe5ae4c91b34719050c to your computer and use it in GitHub Desktop.
Save sn0rk64/b9fcf153370b6fe5ae4c91b34719050c to your computer and use it in GitHub Desktop.
How to configure centos ftp access

How to configure fpt access on centos 7

Run updates.

yum -y update

Install vsftpd.

yum -y update

Edit follow configs.

vim /etc/vsftpd/vsftpd.conf

anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES

Restart vsftpd.

systemctl restart vsftpd

Set vsftpd service to start at boot.

systemctl enable vsftpd

Allow the default FTP port (21), through the firewall.

firewall-cmd --permanent --add-port=21/tcp

Reload the firewall.

firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment