Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Last active December 18, 2015 17:38
Show Gist options
  • Save jlengstorf/5819482 to your computer and use it in GitHub Desktop.
Save jlengstorf/5819482 to your computer and use it in GitHub Desktop.
How to add a new SFTP user
sudo useradd -d /var/www/vhosts/DOMAIN_NAME -g production -G sftp-only -s /bin/false USER_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment