Ubuntu Pastebin

Paste from simon at Mon, 14 Aug 2017 20:01:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# /etc/ssh/sshd_config

Subsystem sftp internal-sftp

Match User foo
  # will chroot foo into it's home
  # make sure to have it root writable only
  ChrootDirectory %h
  # will automatically "cd" into ~foo/rw-dir
  # that is writeable by foo
  ForceCommand internal-sftp -d /rw-dir
Download as text