Each time you modified sshd_config, you must restart SSHD # Do not let root remote login: PermitRootLogin No can only use Group and User name, GID and uid are not allowed. # Reject all users to log in: DenyUsers *
# Reject all users test test2 login: DenyUsers Test Test2
# Reject Test Group Login: DenyGroups Test # Allows User Test Test2 Login: AllowUsers Test Test2
# Allow Group Test to log in: AllowGroups Test