Skip to content

Instantly share code, notes, and snippets.

@slashtechno
Created April 12, 2021 22:14
Show Gist options
  • Save slashtechno/617ab7f49165cfcaf8c8126f8bbde275 to your computer and use it in GitHub Desktop.
Save slashtechno/617ab7f49165cfcaf8c8126f8bbde275 to your computer and use it in GitHub Desktop.
How to log ssh attempts

Logging SSH attempts

Linux (Ubuntu at least) keeps logs by default for SSH to see them in a good format:

run lastb

Drawbacks

Sadly this does not tell if it is failed or successful login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment