Comment on How to harden against SSH brute-forcing?

<- View Parent
sugar_in_your_tea@sh.itjust.works ⁨1⁩ ⁨week⁩ ago

It’s absolutely overboard, and you can get 99% of the way there with this:

  1. WireGuard config (Tailscale in your case)
  2. Bind SSH to WireGuard IP only (so no public SSH port)
  3. SSH keys only, and disable root login over SSH

That will require breaking WireGuard and openSSH’s key-based authentication, which just isn’t happening. The rest looks like mostly auditing. Even a firewall isn’t necessary if no ports are accessible anyway (i.e. everything only accessible over Tailscale), and you can just configure iptables to block everything on the WAN IP and call it a day.

source
Sort:hotnewtop