The following commands assume the system is CentOS/RedHat Linux and ProFTPD configuration is same or similar to CentOS package version: 1.3.3g; release: 1.el6.
yum install proftpd
cd ~/
wget https://gist.github.com/raw/4296200/proftpd.conf.patch
cd /etc/
patch < ~/proftpd.conf.patch
touch /etc/proftpd.sftp.passwd
chown nobody:nobody /etc/proftpd.sftp.passwd
chmod 600 /etc/proftpd.sftp.passwd
cd ~/
wget http://www.castaglia.org/proftpd/contrib/ftpasswd
chmod 755 ftpasswd
./ftpasswd --passwd --name=username --home=/mnt/public/media/ --shell=/bin/sh --uid=$(id -u apache) --gid=$(id -g apache)
cat ftpd.passwd >> /etc/proftpd.sftp.passwd
rm ftpd.passwd
/etc/init.d/proftpd restart
Host: sftp://myhost
Username: username
Password: passwd
Port: 2220