lfd on host: SSH login alert - doesn't work when using key

Post Reply
Ilia
Junior Member
Posts: 98
Joined: 09 Feb 2013, 08:47

lfd on host: SSH login alert - doesn't work when using key

Post by Ilia »

Hello, guys!

I just noticed that when I login to the SSH server, using key authentication (not password), I don't get an email alerts?

This is a bug, right? When the same happens using password, emails are coming correctly!

Could you please fix it?
Ilia
Junior Member
Posts: 98
Joined: 09 Feb 2013, 08:47

Re: lfd on host: SSH login alert - doesn't work when using

Post by Ilia »

Yes, figured this out!

Because: my log line also contains a fingerprint:
RSA 21:48:5b:aa:aa:00:30:b2:39:41:42:a1:a8:1a:41:30

Example of log line:

Code: Select all

Nov  2 13:32:51 host sshd[10238]: Accepted publickey for root from 23.249.6.55 port 41950 ssh2: RSA 21:48:5b:aa:aa:00:30:b2:39:41:42:a1:a8:1a:41:30
Last edited by Ilia on 03 Nov 2014, 10:58, edited 1 time in total.
Ilia
Junior Member
Posts: 98
Joined: 09 Feb 2013, 08:47

Re: lfd on host: SSH login alert - doesn't work when using

Post by Ilia »

Adding a dot to the end of regex works fine, example:

Code: Select all

^(\S+|\S+\s+\d+\s+\S+) (\S+ )?sshd\[\d+\]: Accepted (\S+) for (\S+) from (\S+) port \S+ \S+\s.*$
Please fix it upon next release.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: lfd on host: SSH login alert - doesn't work when using

Post by ForumAdmin »

This has been added in csf v7.57:
http://blog.configserver.com/
Post Reply