When you spin up a fresh public Linux instance, automated scanners start knocking on your doors within milliseconds.

It doesn’t take much to get locked down properly, but missing a few basics can leave you exposed.

I’ve put together a straightforward guide covering the essential hardening steps from UFW and SSH key-only auth to secure Docker bindings and automated maintenance.


Original content by The Unknown Universe, written by a human and not AI generated!

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    19 minutes ago

    Yes and no. Of course an easy solution is easy and getting the easy stuff out of the way is the point of whatever shake a dead chicken ritual script you scp over and run on new deployments.

    Doing the hard stuff doesn’t make doing the easy stuff less worthwhile.

    I would also like to make clear that with nonstandard logins and ports, restricted ssh, key ssh and fail2ban you essentially don’t have attack surface. What are they gonna do, use a residential proxy network to spread attempts across 100k ips to figure out your port and login (if you’re just using some tla greybeard larp username) before they start running key attacks against you? No. They’re gonna go mess with something else where the service gives them something quick and easy to feed to antifox to get a win.

    Just because you ought to be able to put the keys to the castle in a perfectly cryptographically secure glass case on a pedestal lit up by a spotlight next to the gate with a sign next to it that says “these are the keys to everything” doesn’t mean you should.

    If security through obscurity didn’t work then we wouldn’t be seeing 69 million obscure bugs that are all old enough to drive being discovered by ai.