If unable to login via SSH, check the /etc/ssh/sshd_config for AllowGroups.

<pre lang="bash">
AllowGroups root groupname

It’s case sensitive.