Last active
April 26, 2022 14:42
-
-
Save markvaneijk/355dda5f3a5f1718a4810831bbe451af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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