The authorized_keys file lists public keys permitted to authenticate to a particular user account over SSH. It is typically stored in that account’s .ssh directory. When a client proves it holds the private key matching an entry, the server may allow login without a password, subject to SSH configuration and other access controls.
This file is useful for secure, convenient administration, but unauthorized entries can create persistent remote access. Malware or a tampered software package may try to add an attacker-controlled key; the change does not prove that anyone successfully logged in. Defenders should review authorized keys for unfamiliar entries, confirm ownership and permissions, and investigate unexpected modifications alongside SSH logs and endpoint activity. Removing a suspicious key can block that credential, but does not rule out other persistence or compromise.


