Setup sftp server
Install packages
kelvin@xenial:~$ sudo apt-get install openssh-server
kelvin@xenial:~$ sudo groupadd sftpaccess
kelvin@xenial:~$ sudo vim /etc/ssh/sshd_config
Find and comment the below line
Subsystem sftp /usr/lib/openssh/sftp-server
Add these lines at the end of the file.
Subsystem sftp internal-sftp
Match group ftpaccess
ChrootDirectory %h