How to chroot a user to a particular folder of another user
I want to limit his sftp access to a subfolder of another user /home/beta/subfolder
the chroot setting is
Match User alpha ChrootDirectory /home/beta/subfolder AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp
but the ftp gives me error
Error: Connection reset by peer Error: Could not connect to server
If I change ChrootDirectory to /home only it works all fine.
What could be the issue ? please help.