Created
July 29, 2014 15:17
-
-
Save twalling/a6f171b21c5c3c49556f 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
sudo useradd -m -U -s /bin/bash USERNAME | |
sudo mkdir /home/USERNAME/.ssh | |
sudo chmod 700 /home/USERNAME/.ssh | |
sudo touch /home/USERNAME/.ssh/authorized_keys | |
sudo chown -R USERNAME:USERNAME /home/USERNAME/.ssh | |
sudo chmod 600 /home/USERNAME/.ssh/authorized_keys | |
if sudo | |
sudo usermod -a -G sudo USERNAME | |
# echo update /etc/ssh/sshd_config | |
# echo AllowUsers USERNAME | |
# echo sudo passwd USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment