Last active
July 26, 2017 15:23
-
-
Save MaxHalford/cbdf1ebf9d6e5f26a766e37bf7dc791d to your computer and use it in GitHub Desktop.
Add user to a server
This file contains 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
sudo -i | |
groupadd mhalford | |
useradd -g mhalford -G sudo -s /bin/bash -m -d /home/mhalford mhalford | |
cd /home/mhalford | |
mkdir .ssh | |
echo COPY_PASTE_PUBLIC_KEY_HERE >> .ssh/authorized_keys | |
cd .. | |
chown -R mhalford:mhalford mhalford |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment