Skip to content

Instantly share code, notes, and snippets.

@pinfort
Last active May 15, 2021 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinfort/00eec11f1478c3a9ba42b6aff6d656a2 to your computer and use it in GitHub Desktop.
Save pinfort/00eec11f1478c3a9ba42b6aff6d656a2 to your computer and use it in GitHub Desktop.
#! /bin/sh
apt-get update
apt-get upgrade -y
adduser pinfort
chmod 701 /home/pinfort
mkdir /home/pinfort/.ssh
chmod 700 /home/pinfort/.ssh
chown pinfort:pinfort /home/pinfort/.ssh
vi /home/pinfort/.ssh/authorized_keys
chmod 600 /home/pinfort/.ssh/authorized_keys
chown pinfort:pinfort /home/pinfort/.ssh/authorized_keys
usermod -aG sudo pinfort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment