Last active
May 15, 2021 16:15
-
-
Save pinfort/00eec11f1478c3a9ba42b6aff6d656a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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