Skip to content

Instantly share code, notes, and snippets.

@matteomattei matteomattei/90-ssh.conf Secret
Last active Aug 21, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.