🔑authorized_keys
Also known as authorized_keys File, ~/.ssh/authorized_keys, Authorized Keys, ssh-copy-id
A file on the server. It lists the public keys that may log in as that user.
Think of it like
Think of it like a guest list at a party door. Your name is on it, so you walk in.
Example
Jack joins Lucy's team. Lucy adds Jack's public key as a new line in authorized_keys, and Jack can log in.
Why it matters
It is the guest list for the server. Removing a line is how you take someone's access away.
Definition
Example code
console
$ ssh-copy-id jack@203.0.113.10
Number of key(s) added: 1Common mistake
Key takeaways
- 1On the server. In the user's .ssh folder.
- 2One key per line. Remove a line to remove access.
- 3Tight rights. Only the owner may write it.