How to keep the user in a specified directory on the server? (chroot session)
For security and other reasons this is server’s job to ensure that users stay in particular directory only.
Some SSH/SFTP servers have the function built-in, such as:
- Vandyke VShell;
- OpenSSH; See OpenSSH documentation (Look for
ChrootDirectory
directive).
Advertisement
Most FTP servers have the function built-in.