Sftp chroot configuration

From wikieduonline
Revision as of 16:42, 5 May 2020 by Welcome (talk | contribs) (Created page with " #Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp and create a user section at the end of the file (ssh can die respawning if placed after Subsyste...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp

and create a user section at the end of the file (ssh can die respawning if placed after Subsystem line):

Match User john
   ChrootDirectory %h
   ForceCommand internal-sftp
   AllowTCPForwarding no
   X11Forwarding no

Advertising: