Child pages
  • SFTP

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add at the end of the file and replace /var/www <sftpfolder> by the folder you are going to use for sftp (which can be /var/www):

Code Block
# SFTP configuration
 Match group <sftpgroup>
ChrootDirectory /var/www<sftpfolder>
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

 For the users to chroot into their home directory replace <sftpfolder> by %h

Create the folder structure

...

Here are the right folder permissions for the following situation:

  • No access: 730700
  • Read only access: 750
  • Read and Write access: 770