diff --git a/config/filter.d/sshd.conf b/config/filter.d/sshd.conf index 98b5ceae..316af802 100644 --- a/config/filter.d/sshd.conf +++ b/config/filter.d/sshd.conf @@ -14,11 +14,11 @@ # (?:::f{4,6}:)?(?P\S+) # Values: TEXT # -failregex = Authentication failure for .+ from (?: port \d+ ssh2)?$ - Failed [-/\w]+ for .+ from (?: port \d+ ssh2)?$ - ROOT LOGIN REFUSED .+ FROM (?: port \d+ ssh2)?$ - [iI](?:llegal|nvalid) user .+ from (?: port \d+ ssh2)?$ - User .+ from not allowed because not listed in AllowUsers$ +failregex = (?:error: PAM: )?Authentication failure for .* from \s*$ + Failed [-/\w]+ for .* from (?: port \d*)?(?: ssh\d*)?$ + ROOT LOGIN REFUSED.* FROM \s*$ + [iI](?:llegal|nvalid) user .* from \s*$ + User \S+ from not allowed because not listed in AllowUsers$ User .+ from not allowed because none of user's groups are listed in AllowGroups$ # Option: ignoreregex