# Setting up a non-root user with SSH access

Published: 2025-11-25
Last updated: 2025-11-25

I keep having to look this up every time I set up a new machine. 

So here are the steps for future me:

```bash
# Create a user and add to the sudo group
adduser galdin
usermod -aG sudo galdin

# Setup SSH
su - galdin
mkdir  -p ~/.ssh
chmod 700 ~/.ssh

# Exit the ssh session 
# and copy the local SSH key over
exit
exit
ssh-copy-id galdin@

# Log in again!
ssh galdin@
```

