Restrict sftp users to theirs home directory and share folders

I often have to share resources to clients ,  but allowing them to “play” with the entire file system of the web app, might end up in disaster. That’s why i decided to write this little guide on how to restrict sftp users to theirs home directory and share folders. Restrict sftp access to home directory First we need to modify the sshd_config file which contains all the ssh configurations. sudo nano /etc/ssh/sshd_config Make sure the following line is enable, otherwise add it your self. Subsystem sftp internal-sftp  -f AUTH -l VERBOSE On DigitalOcean I had the following line, which …

Read moreRestrict sftp users to theirs home directory and share folders