Моим быстрым решением было добавить в конце /etc/ssh/sshd_config
AllowUsers allowedInnerSubnetUser@192.168.0.0/24 sshUzerFromWWW@*
где: