FTP¶
Install a FTP server on Linux and start service:
yum -y install vsftpd
systemctl start vsftpd
firewall-cmd --zone=public --add-port=21/tcp [--permanent]
Add a user for FTP:
Customize relative configurations in /etc/vsftpd/vsftpd.conf like:
Then edit /etc/vsftpd/user_list, commenting other users and adding
Notes: Users in the file ftpusers are always forbidden for security. If userlist_enable=NO
, all users except those in ftpusers are allowed to access to the server. If userlist_enable=YES
, who can access to the server depends on the file specified by userlist_file
. It's a blacklist when userlist_deny=YES
, otherwise, it's a whitelist.
Access to the server (here is from Command Line):