Linux Cheat Sheet – Users

Create User

useradd --create-home -c "Account to run the something app" something

Eek, reverse it

userdel -r something

SSH Instance Access

Set up an ssh key, and add it to the current user’s authorized keys.

sshgen -f company
# set it up with no password
cat >> .ssh/authorized_keys
# make sure to save off the public and private keys.  One way: 
aws s3 cp company s3://my-bucket/company
aws s3 cp s3://my-bucket/

Location for sudo privs


Also helpful:

Leave a Reply

Your email address will not be published. Required fields are marked *