On a Wheezy server, I used: aptitude install vsftpd
.
I edited the config file at /etc/vsftpd,
disabled anonymous login, enabled local accounts, enabled FTP write, enabled the user vsftpduser, disabled ASCII mangling, activated umask 022
to avoid breaking Wordpress plugins (as per the doc)…
Then I used:
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
I also added local_root=public_html (but I'd like to know why, I just followed a tutorial on this one).
With
openssl req -x509 -nodes -days 365 -newkey rsa:1024 \
-keyout /etc/vsftpd/vsftpd.pem \
-out /etc/vsftpd/vsftpd.pem
I created a certificate and added the path to the vsftpd.conf file.
Finally I also set up the vsftp client in /etc/ssh/sshd_config with Subsystem sftp internal-sftp instead of the standard.
I modified the banner too. My issue: I don't see the banner when sftp-ing into the server. I do see it if I ftp into the server (though I get kicked because I enabled force_*_ssl). I've rebooted the server to no avail.
It looks to me like SFTP still sends me to the openssh sftp server.
syslog and vsftpd.log aren't helping me this day. Where should I look now?