← Back to context

Comment by LoganDark

12 hours ago

Attack surface almost entirely goes away if you just require a good port knock first! I do that with my protection SSH servers and it works just fine. Also prevents anyone from knowing there even is an SSH server there. Or any server if it doesn't respond to pings either, and only uses reverse tunnels to accept public connections

Is there a way to automate port knocks in your .ssh/config? I think that’s the main reason why I haven’t added it to my home server.

Port knocking is idiotic and amounts to Biff Tannen's "only I know how to start this car".

  • It's more like "only I know how to find this keyhole". You still need the key then, you're just also adding some defense against picking.

    It would be idiotic to use the knock as the only authentication, which is why I don't.

    To be quite honest, I just like the aesthetics of it.

    • You're sending your knock over the public network in the clear. It's observable by anything in the path. And then you're not the only one that can find the keyhole.

      1 reply →