Created
July 7, 2017 09:45
-
-
Save dryliketoast/f6bfd039f68f30f159764566e047b7ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Create test user: | |
| useradd test | |
| passwd test | |
| usermod -G www-data test | |
| usermod -d /usr/share/nginx/html test | |
| chown test:www-data /usr/share/nginx/html | |
| Additions to sshd_config: | |
| AllowUsers test | |
| Match User test | |
| ChrootDirectory /usr/share/nginx/html | |
| PasswordAuthentication yes | |
| X11Forwarding no | |
| AllowTcpForwarding no | |
| ForceCommand internal-sftp | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment