News for hackers. Stuff that matters.
Re:AS13335 doing SSH scanning by akira2501 on Saturday September 25, 2021 @01:08PM (#28654620)
I've been happy with having my firewall count SSH connection attempts, and if you make too many attempts in too short a period of time, it just blacklists that IP for 24 hours.
Re:AS13335 doing SSH scanning by silisili on Saturday September 25, 2021 @01:43PM (#28654856)
My first 'defense' was just moving off of port 22. I had planned other things, but to be honest, the attempts went from hundreds a day to zero, so I never bothered doing more.
Re:AS13335 doing SSH scanning by bayindirh on Saturday September 25, 2021 @02:20PM (#28655066)
The first package I install on public facing servers is fail2ban.

After starting it, everything becomes much calmer. Nice thing is, fail2ban can protect much more than SSH.

Re:AS13335 doing SSH scanning by t0mas88 on Saturday September 25, 2021 @02:28PM (#28655127)
I do the same, but only 10 minutes after 5 failed logins. That's enough for bots while not really getting in your way if it accidentally blocks the hotel you're in.

Combined with only allowing key based login, password is disabled.

Re:AS13335 doing SSH scanning by _moof on Saturday September 25, 2021 @03:08PM (#28655432)
I've recently added 2FA as well. Super easy to do.
Re:AS13335 doing SSH scanning by alias_neo on Saturday September 25, 2021 @06:21PM (#28656669)
I wrote a blog on how to do it a couple years back if anyone is interested in a "tutorial": https://2byt.es/post/totp/

It's for the Pi as that's the target audience but it should apply generally for OpenSSH.

There's also a sister post about improving your "first factor" for those still using passwords: https://2byt.es/post/totp2/