IP addresses with the most failed SSH logins
count failed ssh login attempts by ip | ssh brute force attackers list | top ips failed password ssh | journalctl | brute-force | sshjournalctl -u ssh --since "24 hours ago" --no-pager | grep -oE 'Failed password for .* from [0-9a-f.:]+' | awk '{print $NF}' | sort | uniq -c | sort -rn | head -20Searches the SSH service journal for failed password logins, extracts the source IP and counts the attempts per address. The output shows the 20 most active IPs with their count. Useful for judging whether Fail2Ban is working or a ban is needed.
Note: If password authentication is disabled, attempts tend to appear as Invalid user or Connection closed by authenticating user. With rsyslog, the data is also in /var/log/auth.log.
Also searched as
- count failed ssh login attempts by ip
- ssh brute force attackers list
- top ips failed password ssh