summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2014-06-30 19:39:22 +0000
committerNathan Kinkade <nath@nkinka.de>2014-06-30 19:39:22 +0000
commit3493aeff3fc407e0d6fbcadf643b691962cce037 (patch)
treef54ad60af6cf71bf34db56b5ad8e5266a621d73b
parent67a9c50bcd97d1ebe59bef34b66108c3fd751ad2 (diff)
Search for this string anywhere in line to avoid 'X repeated N times' messages for same line.
-rwxr-xr-xscripts/services/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/services/sshd b/scripts/services/sshd
index 1b522e4..1b4131e 100755
--- a/scripts/services/sshd
+++ b/scripts/services/sshd
@@ -357,7 +357,7 @@ while (defined(my $ThisLine = <STDIN>)) {
if ( $Debug >= 5 ) {
print STDERR "DEBUG: Found -Keygen complete- line\n";
}
- } elsif ( my ($Method,$User,$Host,undef) = ( $ThisLine =~ m/^Failed (\S+) for (\S+) from ([^ ]+) port (\d+)/ ) ) { #openssh
+ } elsif ( my ($Method,$User,$Host,undef) = ( $ThisLine =~ m/Failed (\S+) for (\S+) from ([^ ]+) port (\d+)/ ) ) { #openssh
# depending on log mode, openssh may not report these in connection context.
if ( $Debug >= 5 ) {
print STDERR "DEBUG: Found -Failed login- line\n";