13,420
edits
Changes
no edit summary
# The next change you can make is to prevent the root account from logging in to sshd altogether.
# Change to your centos2 VM and open a terminal.
# Edit the file '''/etc/ssh/sshd_config''' and look for the option '''>PermitRootLogin'''. Uncomment Un-comment the option (or add the option if it does not appear) and change the option value to '''"no"'''.
# Even better, it is possible to restrict access to just specific users that require it.
# Edit the file '''/etc/ssh/sshd_config''' and add a new option of '''"AllowUsers account"''' using your login account for account.