Monitor SSH access and send email when someone logins (rsyslog config)
| if $programname == 'sshd' and $msg contains 'session opened for user' then { | |
| ^/usr/local/bin/log_access.py | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment