Hacker News new | ask | show | jobs
by jasonoliveira 3919 days ago
so fail2ban, disabling root logins, and key-based authentication are the answer?
2 comments

A large portion of it, yes.

Limiting SSH to specific IPs or netblocks, and/or specifically excluding those you're likely to never use, would also help cut down on the attack surface. Not that hosts within your perimiter don't get compromised, but there are far fewer of them.

2FA including keyfobs is yet another option.

Port knocking can help also