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.
# Edit the file <code>/etc/ssh/sshd_config</code> and look for the option <code>PermitRootLogin</code>. Uncomment the option (or add the option if it does not appear) and change the option value to <code>"no"</code>.
# Even better , it is possible to restrict access to just specific users that require it.
# Edit the file <code>/etc/ssh/sshd_config</code> and add a new option of <code>"AllowUsers account"</code> using your login account for account.
# In order for these changes to be effective, issue the following command to restart the sshd service:<br /><code>service sshd restart</code>