Skip to content

Instantly share code, notes, and snippets.

@rdkr
Last active November 25, 2018 15:21
Show Gist options
  • Save rdkr/b95f00bb8487e36556fb0a4b3ac22493 to your computer and use it in GitHub Desktop.
Save rdkr/b95f00bb8487e36556fb0a4b3ac22493 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
adduser --disabled-password --gecos "" neel
echo 'neel ALL=(ALL) NOPASSWD:ALL' | sudo EDITOR='tee -a' visudo
sudo -u neel mkdir -p /home/neel/.ssh
sudo -u neel curl https://github.com/rdkr.keys -o /home/neel/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment