ftp服务端安装
apt install vsftpd -y
mkdir /ftphome
useradd -d /ftphome ftpuser
passwd ftpuser
chown ftpuser:ftpuser /ftphome -R
- vi /etc/vsftpd.chroot_list
插入
ftpuser
- vi /etc/vsftpd.conf
write_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
#端口转发需要增加
pasv_promiscuous=YES
systemctl restart vsftpd