Skip to content

Instantly share code, notes, and snippets.

@mikluko
Created January 19, 2012 12:55
Show Gist options
  • Save mikluko/1639947 to your computer and use it in GitHub Desktop.
Save mikluko/1639947 to your computer and use it in GitHub Desktop.
ssh logcheck rules (LogLevel VERBOSE)
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Set /proc/self/oom_adj to [[:digit:]]+$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Connection from [:[:xdigit:].]+ port [[:digit:]]{1,5}$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Found matching (RSA|DSA) key: [[:xdigit:]:]{47}$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Failed publickey for [[:alnum:]]+ from [:[:xdigit:].]+ port [[:digit:]]{1,5} ssh2$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Read error from remote host [.[:xdigit:]:]+: Connection timed out$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: User child is on pid [[:digit:]]{1,5}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment