Difference between revisions of "Sftp chroot configuration"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 15: | Line 15: | ||
With double [[Match]] rule | With double [[Match]] rule | ||
− | [[Match]] User john LocalPort 2222 | + | [[Match]] User john [[LocalPort]] 2222 |
ChrootDirectory %h | ChrootDirectory %h | ||
ForceCommand internal-sftp | ForceCommand internal-sftp |
Revision as of 16:49, 5 May 2020
#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
With double Match rule
Match User john LocalPort 2222 ChrootDirectory %h ForceCommand internal-sftp AllowTCPForwarding no X11Forwarding no
scp error
protocol error: mtime.sec not present
See also
Advertising: