Add user filtering with AllowUsers option in sshd_config file:
AllowUsers johndoe@192.168.1.* admin2@192.168.1.* otherid1 otherid2
This allows johndoe and admin2 only from 192.168.1.* addresses and otherid1, otherid2 from anywhere.
On the SSH Server 1. Check OpenSSH version (requires OpenSSH 9.0+): ssh -V 2. Edit SSH server configuration: Edit /etc/ssh/sshd_config...