I have 5 sites all under /home/mainuser. I have created user in /home/user1, currently the sftp works and the user is jailed to his folder. However, I want it to have access to 2 sites in /home/mainuser and hide the other 3 sites from user1. So I tried to create a symbolic link. But it doesn't work. Can anyone help me solve this problem?
This is my current settings:
Subsystem sftp internal-sftp
Match group SFTP-users
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp