https://devanswers.co/configure-sftp-web-server-document-root/
To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo
if you're logged in as root.
- Edit
/etc/ssh/sshd_config
and make sure to add the following at the end of the file: