SSH Hardening with ssh-audit (thoughts.greyh.at)
from zquestz@lemm.ee to linux@lemmy.ml on 16 Oct 2023 07:25
https://lemm.ee/post/11648675

#linux

threaded - newest

taaz@biglemmowski.win on 16 Oct 2023 08:15 next collapse

Also this: words.filippo.io/ssh-whoami-filippo-io/

zquestz@lemm.ee on 16 Oct 2023 08:34 collapse

Fun, I didn’t know about this. =)

iuser@lemmy.world on 16 Oct 2023 09:20 next collapse

Thanks for pushing the awareness.

RegalPotoo@lemmy.world on 16 Oct 2023 11:37 next collapse

Cool,.but from the post it seems like all it does is:

  • Recommend disabling old algorithms, which you would have already done if you followed a modern hardening guide like infosec.mozilla.org/guidelines/openssh
  • Detect if you are running a known-vulnerable version of OpenSSH, which wouldn’t be an issue if you keep good patch hygiene and install your SSH server through you operating systems’ package manager

So what’s the point? Who is this for?

jwhardcastle@dmv.social on 16 Oct 2023 12:36 collapse

Scripting, to confirm that a large fleet of boxes are all running according to your policy. Verification that the config you want is actually the config you have.

lemann@lemmy.one on 16 Oct 2023 17:46 collapse

This is exactly what I use it for 👌 very handy for this

blarp@lemmy.ml on 16 Oct 2023 12:14 next collapse

i am so happy that this didn’t get downvoted to oblivion. thanks!

PureTryOut@lemmy.kde.social on 16 Oct 2023 12:20 collapse

Personally I made sure SSH is only accessible when connected through a VPN setup for that purpose. As in, that same machine hosts a Wireguard setup (through Tailscale) and you need to connect to that first before SSH is available. And then SSH also only accepts key-based authentication. I don’t think I need more than that?

9488fcea02a9@sh.itjust.works on 16 Oct 2023 12:36 next collapse

What if wireguard has issues? Then you cant ssh in to fix

sturmblast@lemmy.world on 16 Oct 2023 13:10 next collapse

that really just depends on your scenario

PureTryOut@lemmy.kde.social on 18 Oct 2023 17:00 collapse

I have a VPS that runs the main proxy which I can always access via a console on the website of the company I’m renting it from (Hetzner). The other machines run locally in my home so I can just plug in a cable if need be.

possiblylinux127@lemmy.zip on 16 Oct 2023 13:58 collapse

Couldn’t you just use ssh port forwarding?

ReversalHatchery@beehaw.org on 16 Oct 2023 16:02 next collapse

If they use the VPN for other things too, it’s simpler this way

PureTryOut@lemmy.kde.social on 18 Oct 2023 17:01 collapse

Sure but I rather not have the SSH port open to the world, it just makes it harder for attackers to get in this way. Besides I use the VPN for more things, some self-hosted services I don’t want accessible by the whole world.