Restricting which users can remotely access the system via SSH will help ensure that only authorized users access the system.
Solution
Edit the /etc/ssh/sshd_config file to set one or more of the parameter as follows: AllowUsers <userlist> AllowGroups <grouplist> DenyUsers <userlist> DenyGroups <grouplist>