REF: https://www.youtube.com/watch?v=VZm8SoxgwXc
Install vsftpd:
sudo apt install vsftpd
Configure vsftpd with SSL:
sudo su
mkdir /etc/ssl/certificates
Create the SSL certificate:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/certificates/vsftpd.pem -out /etc/ssl/certificates/vsftpd.pem
Edit the configuration file:
nano /etc/vsftpd.conf
At the “rsa_cert_file” replace that line with the following:
rsa_cert_file=/etc/ssl/certificates/vsftpd.pem
rsa_private_key_file=/etc/ssl/certificates/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
Exit out of the SU:
exit
Now restart the vsftpd server:
sudo service vsftpd restart