Very Basic installation and configuration of vsftpd with virtual users to support Secure (SSL) SFTP.
Only tested on Ubuntu 14.04 and the vsftpd that comes from the standard apt sources at the time this cookbook was created. No attempt has been made to support other target platforms or versions of vsftpd.
create the password file with:
$ echo "$ftpusername" >> /etc/vsftpd/logins.txt
$ echo "$ftppassword" |mkpasswd -s -m sha-512 >> /etc/vsftpd/logins.txt
$ db_load -T -t hash -f /etc/vsftpd/logins.txt /etc/vsftpd/login.db
$ mkdir /home/ftpsite/users/$ftpusername
$ service vsftpd restart