sudo grep 'Failed password' /var/log/auth.log | tail -20

Category: VPS Management

sudo grep 'Failed password' /var/log/auth.log | tail -20

Show the 20 most recent failed SSH password attempts

Reveals brute-force attempts against your server. If you see thousands of failures from external IPs, ensure password auth is disabled and Fail2ban is running.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.