I want to configure OpenSSH to use port 22 for LAN clients, but to use a non-standard port for all outside addresses. How would this be done?
What I have in mind is imagined to be like this:
Match Address 192.168.0.0/24 Port 22 Match Address <all others> Port 2022
I'm not sure how to implement it in sshd_config or if it is possible.