View Single Post
  #2   (View Single Post)  
Old 27th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

See the sshd_config(8) man page, and read the section on ChrootDirectory and the section on Subsystem.

See the sftp-server(8) man page.

---

I have never used ChrootDirectory except with sftp-server. My shell users are granted full shell access.

Here's an example that was once in use on one of my systems:
Code:
Subsystem sftp /usr/libexec/sftp-server
Match User carpetsmoker
        ChrootDirectory /home/carpetsmoker
        AllowTcpForwarding no
        ForceCommand internal-sftp
Reply With Quote