1、下载vsftp
yum install vsftpd
2/配置vsftpd.conf
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO 关闭匿名登录
chroot_list_file=/etc/vsftpd/chroot_list #设置权限名单
local_root=/home/web #访问路径
allow_writeable_chroot=YES #允许访问用户目录
3/配置chroot_list
vi /etc/vsftpd/chroot_list

4/重启vsftpd
service vsftpd restart
5/创建用户
useradd web
passwd web
6/远程连接

7/补充:开通阿里云21端口
网友评论