175
edits
No edit summary |
No edit summary |
||
| Line 55: | Line 55: | ||
Add (or uncomment) the sftp paragraph: | Add (or uncomment) the sftp paragraph: | ||
Match User sftpuser | |||
:ChrootDirectory /var/www/siterootfolder/sftp(sub)folder/ | |||
:X11Forwarding no | |||
:AllowTcpForwarding no | |||
:ForceCommand internal-sftp | |||
This way the user will only have access to his 'home' folder, seeing it as a root folder. | This way the user will only have access to his 'home' folder, seeing it as a root folder. | ||