Insights
SSH brute-force attacks: What failed logins mean and how to reduce risk
Learn how SSH brute-force attacks work, what failed and successful logins can tell you, and how to restrict access to your SSH server.

On this page
An SSH brute-force attack is repeated guessing at a Secure Shell (SSH) loginOpens in a new tab to try to get into a remote system. A series of failed logins can point to guessing, but it doesn't show that anyone got in. Look for a related successful login you can't explain.
In short:
- Failures suggest guessing. They don't show that anyone signed in.
- Check related successes. Compare them with known administrator activity.
- Restrict SSH access. Keep remote administration on an authorized private path.
Why an encrypted login can still be guessed
SSH encrypts the connection, but the server still has to check each login. A server can reject one password guess after another while its encryption works as intended. That's online guessing against a live service, not offline cracking against captured password data or an attempt to break SSH encryption.
What failed logins actually tell you
Review the SSH server's authentication records for the same time window as the failures. Note the outcome, account, timestamp and source address for each login, then compare any related success with known administrator activity.
Use this rule to decide which successful logins need a closer look.
| Log pattern | How to read it | Next step |
|---|---|---|
| Repeated failures with no related success | Possible guessing, no entry shown | Note the pattern and any gaps in the records |
| Failures followed by a nearby success for the same account or source address | A lead to check, not proof of entry by the person guessing | Compare the success with known activity |
| Related success that doesn't match known activity | Possible unauthorized access | Flag that login for investigation |
You should be able to say what the records show and identify any successful login that still needs checking. A matching account or address doesn't prove who connected or how they signed in. Incomplete records can't rule out unauthorized access.
How to limit who can reach SSH
On a server you manage, restrict SSH to an authorized private path first. Keep recovery access available while you change access or sign-in rules, since strict failure lockouts can block legitimate users too.
Check both paths before you treat the service as private. From an approved device on the private network, confirm you can sign in. Check the network rules for any remaining public route and confirm from outside the private network that the public address no longer accepts SSH connections on the configured port. A working private login doesn't prove the public path is closed.
If you don't need password-based logins, prefer access with cryptographic keys and check that an approved key works and the server no longer accepts password-based sign-ins.
What quieter logs after a port change mean
Moving SSH to a different portOpens in a new tab changes where it listens, not who can reach it. Hypothetical: Your logs show fewer failed logins after a port move, but the same public access rule still allows connections to the new port. The logs are quieter, but SSH is still public.
Use network rules and a reachability check on the current port to judge who can connect. Use authentication records to judge possible entry, and check related successes against known activity. Fewer failures alone settle neither question.
Where doxx.net fits. doxx.net gives your devices a private network, but joining it doesn't close a public SSH route or change your server's sign-in policy. To connect a device, create an account, download the appOpens in a new tab and connect it to the private network.