by gen220 · 6y ago · 0 comments
Let the server and client share a secret. Use that secret to encrypt the UTC date (2020-09-21), and sample some decimals from the first few bits (adding 100 or so, to avoid low-ports).
You could use that mechanism to rotate ports every 24 hours. This way, the bots wouldn't be able to learn the ssh port for more than 24 hours, without the shared secret.
Sounds like fun, or an easy way to lock yourself out of a box by mistake, depending on your perspective. :)
I think I'd sooner implement port knocking rather than port-hopping
Maybe you'd knock to get a number, and hash the number to get the real port.
Defense in depth! :)
This is THE way to go !
I imagine the people who had to use these things locked themselves out all the time. :)
So yes, it's a FANTASTIC way to lock yourself out!