Skip to content

Instantly share code, notes, and snippets.

@avargas
Created February 23, 2023 10:13
Show Gist options
  • Save avargas/a0f272e07280380dd8d3bb4612a81fa7 to your computer and use it in GitHub Desktop.
Save avargas/a0f272e07280380dd8d3bb4612a81fa7 to your computer and use it in GitHub Desktop.
zcat -f -- /var/log/auth.log* | grep ssh | egrep -i "(Accepted.+for.+from.+port.+|session opened for user)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment