You can limit the number of users who can log into your Linux servers by following a tutorial published by TechRepublic.
How to cap the number of users allowed to log into your Linux servers
If you have Linux servers that allow remote connection via SSH, you might want to limit the number of users allowed to log in.
How to cap the number of users allowed to log into your Linux servers