blacklist.sigmanetworks.co.uk
blacklist.sigmanetworks.co.uk/Blog/blacklist.sigmanetworks.co.uk
blacklist.sigmanetworks.co.uk

Why Is My Server Getting Thousands of Failed SSH Logins? What It Means and What to Do

Updated 23 November 2026

You set up a new server, check the logs a day later, and find page after page of failed SSH login attempts from addresses you have never heard of. Usernames like admin, test and oracle, tried over and over. It is a common moment of panic for anyone new to running servers.

The good news is that this is normal, it is almost never personal, and it is very manageable. This guide explains what is going on, how to check whether anything has actually got in, and what to do about it.

Why it happens

Attackers do not usually pick your server out of a crowd. They run automated tools that sweep huge ranges of IP addresses looking for anything listening on SSH, most often on the default port 22. When a tool finds an open port, it starts working through lists of common usernames and passwords.

Much of this scanning comes from machines that have themselves been compromised, such as poorly secured servers, cloud instances and home devices that now form part of a botnet. That is why the attempts come from so many different addresses and countries, and why blocking one address by hand barely makes a dent.

The scale is hard to appreciate until you see it. The SigmaNetworks SSH Honeypot Blacklists dashboard, which collects data from a distributed network of honeypot servers that nobody legitimate should ever log in to, recorded 54,325 attacks in a single day in one recent snapshot. Every one of those was an automated attempt to get in.

Does this mean I have been targeted?

Almost certainly not. A steady stream of failed logins against lots of generic usernames is the signature of opportunistic scanning. The bots are looking for any machine with a weak password, not yours in particular.

What matters is not how many attempts failed, but whether any succeeded. That is the question worth spending your time on.

How to check your logs properly

Where to look depends on your Linux distribution:

  • Debian and Ubuntu: /var/log/auth.log
  • Red Hat, CentOS, Rocky and similar: /var/log/secure
  • Systems using systemd's journal: run journalctl -u ssh or journalctl -u sshd

When reading through, you will typically see three kinds of line:

  • "Invalid user" means someone tried a username that does not exist on your system. Harmless on its own.
  • "Failed password" means a real or invalid account was tried with the wrong password. Also harmless if it failed.
  • "Accepted" means a login succeeded. These are the lines to check carefully.

Search for every "Accepted" entry and make sure each one matches you or someone on your team, from an address you recognise, at a time that makes sense. The last command shows recent successful logins, and lastb shows failed ones, which can be a quicker way to get an overview.

Signs that something has actually gone wrong

If every successful login is accounted for, you are very likely fine. Be more concerned if you notice any of the following:

  • Successful logins from unfamiliar IP addresses or at unusual times
  • New user accounts you did not create
  • Unknown keys added to ~/.ssh/authorized_keys
  • Unexpected scheduled tasks in cron
  • Sustained high CPU use with no obvious cause, which can indicate cryptocurrency mining software
  • Unfamiliar processes or outbound connections

If you see these, treat the server as compromised. In most cases the safest route is to take it offline, preserve what you need for investigation, and rebuild from a known-good state rather than trying to clean it in place.

How to make the attempts harmless

You cannot stop bots from knocking, but you can make sure the door does not open. These are the measures that matter most, roughly in order of impact:

MeasureWhat it does
Use SSH keys and disable password loginsPassword guessing becomes pointless, which defeats almost all brute-force attempts
Disable direct root loginRemoves the most-targeted account as a way in
Restrict SSH to known IPs or a VPNMost of the internet cannot reach your SSH service at all
Keep the system patchedCloses known vulnerabilities in the SSH server and operating system
Rate limiting or intrusion prevention toolsTemporarily bans addresses after repeated failures on your own server
Use a shared blacklistBlocks addresses already seen attacking elsewhere, before they reach you
Move SSH to a non-standard portReduces log noise from basic scanners, but is not real security on its own

Once keys are in place and passwords are switched off, those thousands of failed attempts are effectively noise. The remaining steps are about reducing that noise, saving resources and keeping your logs readable so real problems stand out.

Where a shared blacklist fits in

Tools that ban an address after it fails on your server only learn from attacks you have already received. A shared blacklist works the other way round: it lists addresses that have already been caught attacking honeypots, so you can block them before they ever try your machine.

The SigmaNetworks lists are updated every five minutes and are available in several formats, including a plain text IP list, CIDR notation for firewall rules, a ready-to-run iptables script, and JSON or CSV files with extra detail such as country and attempt counts. That makes them easy to plug into whatever firewall or automation you already use.

A few sensible precautions apply. Add an allow rule for your own management addresses before any block rules, so you cannot lock yourself out. Read any downloaded script before running it. Refresh the list on a schedule and replace old rules rather than piling new ones on top. And keep in mind that addresses can change hands, so an SSH-focused list is best applied to SSH rather than to every service you run.

Turn the noise into something useful

Those failed logins can actually teach you something. The site also publishes the usernames attackers try, with attempt counts, and the top 1,000 passwords seen in attacks, offered for defence research. If one of your account names or a password pattern your team uses appears near the top, that is a clear prompt to change it.

Seen this way, a log full of failed attempts is less a cause for alarm and more a reminder to get the basics right.

Get started

If your logs are full of failed SSH logins and you want to cut the noise, harden SSH first, then add a shared blacklist as an extra layer. You can download the latest lists, in whichever format suits your setup, from the SigmaNetworks SSH Honeypot Blacklists page. For more background on how the lists work and who they help, see SSH Honeypot Blacklists Explained.