Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- useradd -m 'username' -s /bin/bash
- mkdir /home/username/.ssh
- echo 'your_public_key_string' > /home/username/.ssh/authorized_keys
- chmod 0600 /home/username/.ssh/authorized_keys
- chown -R username:username /home/username/.ssh
- passwd --delete username
- usermod -a -G wheel username
- usermod -a -G docker username
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement