Skip to content

Instantly share code, notes, and snippets.

@vanillaSprinkles
Last active December 15, 2015 03:08
Show Gist options
  • Save vanillaSprinkles/5191701 to your computer and use it in GitHub Desktop.
Save vanillaSprinkles/5191701 to your computer and use it in GitHub Desktop.
jail ssh sftp user
bottom of /etc/ssh/sshd_config:
Match user boobies
chrootdirectory /home/boobies
x11forwarding no
permittunnel no
AllowTcpForwarding no
ForceCommand internal-sftp
sudo chown -R root:boobies /home/boobies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment