cd /etc/vsftpd vim vsftp.user #添加刚刚新建的ftp账号 vsftpjiuyun
2.生成证书
1 2 3 4 5 6 7 8 9 10 11
mkdir /etc/vsftpd/ssl -p mkdir /etc/vsftpd/ssl/private -p ssl证书生成 openssl req -x509 -nodes -days 720 -newkey rsa:2048 -keyout /etc/vsftpd/ssl/private/vsftpd.key -out /etc/vsftpd/ssl/vsftpd.pem Country Name (2 letter code) \[XX\]:CN #国家 State or Province Name (full name) \[\]:Zhejiang #省份 Locality Name (eg, city) \[Default City\]:Hangzhou #城市 Organization Name (eg, company) \[Default Company Ltd\]:RD #公司 Organizational Unit Name (eg, section) \[\]: #直接回车 Common Name (eg, your name or your server's hostname) \[\]:rdtest.com #主机名 Email Address \[\]:mjin@erongdu.com #邮箱