Set up FTP service on a CentOS 6.2 server
· One min read
On my company's test server, I try to set up an FTP service for colleagues to upload and share files.
Main Steps
1. install the vsftpd server
yum -y install vsftpd
2. modify iptables, and add port 21
Open the port in firewall. you should Prohibit anonymous access.
cd /etc/vsftpd
vi vsftpd/vsftpd.conf
3. configure the root user to access
vi ftpuser
# comment ‘#’ before root
vi user_list
# comment ‘#’ before root
4. start FTP Server
service vsftpd restart
You can then use FileZilla to connect the ftp server, where you need to configure the client side to use active mode and UTF-8 encoding.
This method is relatively risky and should be used with caution. It is recommended to set a more complex password and change it regularly.