Skip to content

Instantly share code, notes, and snippets.

@markvaneijk
Last active April 26, 2022 14:42
Show Gist options
  • Save markvaneijk/355dda5f3a5f1718a4810831bbe451af to your computer and use it in GitHub Desktop.
Save markvaneijk/355dda5f3a5f1718a4810831bbe451af to your computer and use it in GitHub Desktop.
# sshd config
nano /etc/ssh/sshd_config
Match User rocketeer
ChrootDirectory /
Subsystem sftp internal-sftp
# permissions
sudo setfacl -R -m user:[user]:rwx /var/www/[site]
# files
sudo find /var/www/[site]/ -type f -exec chmod 664 {} \;
sudo find /var/www/[site]/ -type d -exec chmod 775 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment