defaults

usermod -p ! root

yum clean all

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y

yum install fail2ban -y

systemctl enable firewalld
systemctl restart firewalld

echo "[sshd]" > /etc/fail2ban/jail.d/sshd.local 
echo "enabled = true" >> /etc/fail2ban/jail.d/sshd.local 
echo "port = ssh" >> /etc/fail2ban/jail.d/sshd.local 
echo "logpath = %(sshd_log)s" >> /etc/fail2ban/jail.d/sshd.local 
echo "maxretry = 1" >> /etc/fail2ban/jail.d/sshd.local 
echo "bantime = 90" >> /etc/fail2ban/jail.d/sshd.local 

systemctl enable fail2ban 
systemctl restart fail2ban 

yum install setroubleshoot-server -y
yum upgrade -y
yum install -y wget