In my VPS account, I have a folder /home/xyz/public_html.This belongs to a customer who now wants their in-house developer to look into the code. How do I give SFTP access to only this folder?I have already tried creating a user and giving access as follows, but when I login through WinSCP and change the directory to /, its going to all the root folders.useradd dev1groupadd dev-xyz    usermod -a -G dev-xyz dev1chown -R root /home/xyz/public_htmlchgrp -R dev-xyz /home/xyz/public_htmlchmod -R 775 /home/xyz/public_htmlchmod g+s /home/xyz/public_htmlEDIT 1This is what I added in sshd_config & then restarted the service, but to no effect in outcome.Match Group dev-xyzChrootDirectory /home/xyz/public_htmlAllowTCPForwarding noX11Forwarding noForceCommand /usr/libexec/openssh/sftp-server
Give access to only one directory that's not user's home
linux;permissions;sftp