20 years ago port-knocking was supposed to solve this issue for good but it seems to have been never really been taken up. I'm not sure why.
It feels very like a "key under the third plant on the right" kinda thing. Not a solid security measure.
It's too much bother to go find it, and the bozos will just move on to the next machine with port 22 open.
It’s like how an adversary might launch a DDoS attack at the same time as they exploit a SQL injection vulnerability to exfiltrate credit card information. Filling up logs and alerts overwhelms the blue team and makes it harder to notice the quieter, but more dangerous attack.
But I know I'm a bit of an absolutist on security.
But you also put it in the shed, and lock the shed.
btw TCP is cheap compared to public key crypto