You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
411 B

sudo apt update
sudo apt upgrade -y
sudo apt-get install fail2ban -y
sudo apt install rsyslog -y
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sudo cp /project/fail2bansshconf /etc/fail2ban/jail.local
sudo cp /project/sshdconf /etc/ssh/sshd_config
sudo service ssh restart
sudo service rsyslog restart
sudo service fail2ban restart
#sudo cat /var/log/auth.log
sudo fail2ban-client status sshd