authorized_keys

The file in a user's ~/.ssh directory listing the public keys allowed to log in to that account over SSH.

Any key listed there can log in as that user, so a planted line is a persistent backdoor.

In more detail

Adding a line is granting access; removing it revokes that key. Options on a line can restrict a key, for example to one command or source address. The file and its directory must not be writable by others, or sshd ignores it.

Example

Adding a line here is a quiet way to keep access to a Linux host.

Related terms

Taught in

References

Certification courses