From 2a38ae763058a0c59378d0799011faad2faad9b4 Mon Sep 17 00:00:00 2001 From: cs161069 Date: Wed, 27 Jan 2021 14:41:15 +0000 Subject: [PATCH] Update 'HowTo.adoc' --- HowTo.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/HowTo.adoc b/HowTo.adoc index 4c01d86..35035eb 100644 --- a/HowTo.adoc +++ b/HowTo.adoc @@ -120,11 +120,14 @@ sudo apt install rsyslog -y ``` sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local sudo cp "/project/fail2ban_ssh_conf_local" /etc/ssh/sshd_config -sudo touch /var/log/auth.log -sudo chown root.root /var/log/auth.log -sudo chmod 600 /var/log/auth.log sudo service ssh restart sudo service rsyslog restart sudo service fail2ban restart ``` +Σε περίπτωση που υπάρχει πρόβλημα με το path του *auth.log*: +``` +sudo touch /var/log/auth.log +sudo chown root.root /var/log/auth.log +sudo chmod 600 /var/log/auth.log +``` Και έτσι αντιμετώπιζω μια ssh brute force attack χρησιμοποιώντας το *fail2ban*. \ No newline at end of file