Managing users on Linux

Managing users on Linux

October 6, 2024

1. Add new user

adduser USERNAME
cd /home/USERNAME

2. Create SSH keys

mkdir .ssh
sudo chown -R USERNAME .ssh
sudo chgrp -R USERNAME .ssh

Add your keys:

> nano .ssh/authorized_keys

Create user keys as user and check GitHub access:

ssh-keygen -t ed25519
ssh -T git@github.com

3. Delete users

deluser USERNAME
rm -rf /home/USERNAME

built withbuildery