diff --git a/lib/ssh_parser.pm b/lib/ssh_parser.pm index 15da0a1..c65c78e 100644 --- a/lib/ssh_parser.pm +++ b/lib/ssh_parser.pm @@ -171,7 +171,7 @@ sub parser { m/ ($re_host) /gcix && do { $host = $1; }; - } elsif($string =~ m/Authentication error for( illegal user|) $re_user from $re_host/) { + } elsif($string =~ m/Authentication error for( illegal user|) $re_user from $re_host$/) { $_ = $string; $hostile = 1; $reply = 'Authentication error';