我想将 OpenSSH 配置为对 LAN 客户端使用端口 22,但对所有外部地址使用非标准端口。这将如何完成?
我脑子里的想象是这样的:
Match Address 192.168.0.0/24 Port 22 Match Address <all others> Port 2022
我不确定如何在 sshd_config 中实现它,或者是否可能。
ssh port openssh
openssh ×1
port ×1
ssh ×1