Created
May 21, 2015 18:09
-
-
Save OldCrowEW/bfd883213762388f1a7f to your computer and use it in GitHub Desktop.
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
adduser user | |
usermod -a -G supergroup user | |
mkdir /home/user/.ssh/ | |
cat /tmp/ssh-pubkeys/id_rsa_user.pub >> /home/user/.ssh/authorized_keys | |
chown -R user:user /home/user/.ssh | |
chmod -R 700 /home/user/.ssh | |
chmod -R 600 /home/user/.ssh/* | |
ls -al /home/user/ | |
ls -al /home/user/.ssh/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment