SSH brute force protection

SSH Failed Login Attemps

You can see the last failed login attemps

tail -f /var/log/secure

To Change Port

Open sshd_config and change the port number.

service iptables stop

sudo vi /etc/ssh/sshd_config

service sshd restart

If you get an error about restarting sshd, please follow the steps.

yum -y install policycoreutils-python
semanage port -a -t ssh_port_t -p tcp PORT_NUMBER