ssh login should be allow

sudo nano /etc/ssh/sshd_config
AllowUsers XXX OOO
or
AllowGroups XXX OOO
not both
sudo /etc/init.d/ssh restart