Hands-on task
Let a colleague in with a key
Anna has joined the team and needs access to the server. She sent her public key — it's in /root/anna.pub.
Set things up so that Anna can log in with this key as the user deploy (that user already exists). The directory and the file with the keys must belong to deploy and be accessible only to that user: that's the rule, and if someone else can change them, SSH won't accept the key.
- authorized_keys
- chown
- chmod
- ~/.ssh permissions
- key login