Thursday 03 December 2026 15:58:30 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

SSH persistence

A method of maintaining repeated remote access through SSH configuration or key material.

SSH persistence is a way to keep repeated remote access on a Unix-like system by changing SSH-related settings or key material. Common methods include adding an attacker’s public key to ~/.ssh/authorized_keys, modifying system-wide SSH configuration, or installing a backdoor account that can log in over SSH. Unlike a one-time shell, persistence is meant to survive reboots and give the operator a reliable return path.

It matters because SSH is widely trusted for administration. If an attacker gains write access to SSH keys or config files, they can regain access without stealing a password again, often bypassing normal login monitoring. Defenders look for unexpected changes in authorized_keys, new or altered private keys, unusual SSH daemons, and logins from unfamiliar sources. Hardening measures include key rotation, strict file permissions, MFA where possible, centralized logging, and alerts on changes to SSH trust material.

← WIKICROOK index