Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Subsystem sftp internal-sftp
- ## You want to put only certain users (i.e users who belongs to
- ## sftpusers group) in the chroot jail environment. Add the following
- ## lines at the end of /etc/ssh/sshd_config
- Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp
- $ sudo service sshd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement