Whenever I SSH into my DigitalOcean droplet as root (where possible I use a user instead), I regularly see there is hundreds, sometimes of thousands failed login attempts from the past few days.

enter image description here

  • Is this normal?
  • What is it likely to be cause by?
  • Is there anything to worry about?
  • Are there any steps I should take to reduce these attempts?
  • 2
    Why the downvote? I'm always looking for feedback tom improve :)
    – Alicia
    Mar 20, 2018 at 18:11
  • 2
    Don't you hate random downvoting with no reason on to why? @Lissy ...i gave u an upvote.
    – Jeryl Cook
    Dec 10, 2018 at 10:30

3 Answers 3


Is this normal?

Yes. This is happening all the time.

What is it likely to be cause by?

Bots trying to get access to your system. If they are successful, they might abuse your system to do the same thing to other machines.

Is there anything to worry about?

In a nutshell: If you have disabled password based login, then no.

Are there any steps I should take to reduce these attempts?

You can use something like fail2ban.


Yes, I'd be more concerned if you didn't.

It's a good idea to...

  • change your ssh port (common)
  • drop packets from unknown IP address if you have a reliable source range.
  • add multi factor authentication
  • port knocking
  • scheduled firewall/service (only run ssh when you need it, emergency access via console)
  • install fail2ban to reduce repeat offenders
  • Thanks very much, really helpful. Should the port just be anything other than the default 21?
    – Alicia
    Mar 8, 2018 at 13:03
  • 2
    SSH is default on 22, but yes, if you want to change it, pick a number that doesn't conflict with something already running on your system and that doesn't overlap with a different known service. netstat -anpt can be used to show what is actively listening on your box.
    – Andrew
    Mar 8, 2018 at 14:10

No it's not normal, but it has become commonplace courtesy of poor defaults, uninformed users, hackers and security testers.

If you've got good and secure passwords or use keys, and plenty of space for your log files, then there's nothing to worry about.

A great solution to clean this up though, is to set up automation so that the owner of the originating network (the source) gets a notification that this is being done from his network, so that they can act fast to block it, and clean it up. Most of this traffic is a sign of malware on your network blocking machines or users doing this will protect other users who might fall victim to potential exploits or nefarious users.

All the nefarious users running botnets and trying to take over your devices, will of course downvote this.

  • 1
    "A great solution to clean this up though, is to set up automation so that the owner of the originating network gets a notification" - No thanks!! I don't want 5000 notifications a day, reminding me that bots like to ping stuff 😂
    – Alicia
    Mar 7, 2019 at 17:01
  • @Lissy You're misreading. The originating network. Are you saying that you don't want to know if you've got malware on your network and you don't care about cleaning it up? For me it's simple - if you're on my network, and you have malware, I will automatically block you. You will call me and say "my internet is not working" and I will say "yes you have malware, my firewall blocked you to protect other users, lets fix it!".
    – Dagelf
    Mar 8, 2019 at 18:29
  • 1
    @Dagelf No, it's not a good idea as a botnet will make you down, as you answer it, just use something like fail2ban like other answer tell, so the local firewall & ssh daemon will no longer handle those packets at all, as it will be dropped at /dev/null.
    – yagmoth555
    Mar 8, 2019 at 18:48
  • That is what is called "doctoring the symptom instead of the cause." How will that ever improve the situation? So you are in effect saying we should just sit on our hands until password authentication is no longer a thing?...
    – Dagelf
    Mar 8, 2019 at 22:08
  • @Alicia It's not for ICMP probes, it's for actual brute forcing, which is against the AUP of every single service that I've ever seen an AUP for, unless previously arranged via a security audit. Can you honestly not see a prudent automated way of dealing with this properly? Is the internet equivalent of 1000 people/day trying to break open your front door normal? No. If people who do this are cut out, unless they have a permit to do security audits, wouldn't all our data be safer? Yes, it's not going to fix everything, but it will set the bar for data theft and breaches higher.
    – Dagelf
    Apr 11, 2020 at 7:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .