Show failed SSH login attempts by source IP.
IntermediateProductionRapid-Fire Commands
Answer
sudo journalctl -u ssh -u sshd --since today | grep 'Failed password' \
| awk '{print $(NF-3)}' | sort | uniq -c | sort -rn | head
sudo lastb | head # from /var/log/btmp
More on Rapid-Fire Commands
Which process is listening on port 8080?BeginnerShow the top 10 memory-consuming processes.BeginnerFind files larger than 1 GiB on the root filesystem only.BeginnerShow failed systemd units.BeginnerShow the last 10 reboots and shutdowns.BeginnerTest whether a remote TCP port is reachable without telnet or nc.Beginner