@ -1,8 +1,4 @@
#!/bin/bash
echo "log"
printf "[sshd]\nenabled = true\nbanaction = iptables-multiport" > /etc/fail2ban/jail.local
systemctl enable fail2ban
ufw allow OpenSSH