i'm trying to manage access for ssh with AllowGroups, and it's working fine. Now i would like to restrict access to some groups only if they connect from a specific host, with AllowUsers it works like firstname.lastname@example.org but in AllowGroups isn't working.
AllowGroups itstaff email@example.com
I have tried using Match Address and AllowGroups inside but it seems that AllowGroups is not allowed within a Match Block.
Match Address "192.168.0.1" AllowGroups securitystaff
sshd service fails to start and i get the message "Directive AllowGroups is not allowed within a match block.
Thanks in advance for any ideas.