Skip to content

Instantly share code, notes, and snippets.

@intech
Last active October 30, 2019 06:36
Show Gist options
  • Select an option

  • Save intech/e7373d8069779cccb2c68f5eb0ba5274 to your computer and use it in GitHub Desktop.

Select an option

Save intech/e7373d8069779cccb2c68f5eb0ba5274 to your computer and use it in GitHub Desktop.
#!/bin/bash
useradd -m -d /home/$USER -s /bin/bash $USER
sudo -u$USER mkdir -p /home/$USER/.ssh
chmod 700 /home/$USER/.ssh
sudo -u$USER touch /home/$USER/.ssh/authorized_keys
chmod 600 /home/$USER/.ssh/authorized_keys
# Docker
usermod -aG docker $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment