Advertisement
Guest User

Untitled

a guest
Sep 14th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Subsystem sftp internal-sftp
  2.  
  3. ## You want to put only certain users (i.e users who belongs to
  4. ## sftpusers group) in the chroot jail environment. Add the following
  5. ## lines at the end of /etc/ssh/sshd_config
  6.  
  7. Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp
  8.  
  9. $ sudo service sshd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement