logalyzer icon indicating copy to clipboard operation
logalyzer copied to clipboard

Public key authentication is totally ignored

Open Nama opened this issue 9 years ago • 3 comments

Failed and successful key authentications aren't parsed.

Add this in ParseUsr():

elif "Accepted publickey" in line:
        usr = re.search(r'(\bfor\s)(\w+)', line)

And change the first if in the for loop in ParseLogs() to: if "Accepted password for" in line or "Accepted publickey for" in line:

This way, key logins are shown, too. Since I generally disable password-authentication, it doesn't work for me. Still failed logins aren't shown. You need to look for "Authentication refused", "Invalid user" and "error: Received disconnect". Since only "Invalid user" shows the username, this breaks the whole system of this script.

Nama avatar Jun 24 '16 12:06 Nama

@Nama the fork I've created parses publickey access: here

yoiang avatar Jan 04 '17 11:01 yoiang

thx @yoiang

Nama avatar Jan 04 '17 11:01 Nama

Thx @yoiang

GoMapur avatar Jul 06 '17 20:07 GoMapur