13,420
edits
Changes
no edit summary
# Try sshing from your '''centos1''' VM to your '''centos2''' VM. Where you successful? Would it work if you let "AllowUsers account" without a username, or a non-existent username?
# Next change the default port number that sshd uses (TCP:22).
# Edit the sshd configuration '''/etc/ssh/sshd_config''' file again and change the port number it uses to '''2200'''.
# Restart the service.
# Confirm the new port is being used with the '''netstat''' command.
|}
<ol><li value="1416">Finally as a system administrator you should periodically monitor your system logs for unauthorized login attempts.</li>
<li>On CentOS systems the log file that is used is '''/var/log/secure''' </li>
<li>It also logs all uses of the '''su''' and '''sudo''' commands.</li>