SSH audit
CAUTION
a compromised host gets rebuilt, not cleaned - it can't report on itself
fish
sudo grep -h 'Accepted' /var/log/auth.log
sudo grep -oP 'from \K[\d.]+' /var/log/auth.log | sort | uniq -c | sort -rn | head- only
Accepted publickeyfrom known users and IPs - anyAccepted passwordneeds investigating ssh-rsa not in PubkeyAcceptedAlgorithmson a schedule is your own automation with an old SHA-1 key - move it to Ed25519, don't re-enablessh-rsa