Skip to content

Instantly share code, notes, and snippets.

@rupakraj rupakraj/last-lastb
Created Feb 26, 2016

What would you like to do?
Handy Shell Commands for checking SSH Access using last, lastb, sed
# lastb : Unsuccessful attempts
# last : Successful attempts
sudo lastb | sed 's/ \+/ /g'| cut -d' ' -f3 | sort | uniq -c | sort -n
sudo last | sed 's/ \+/ /g'| cut -d' ' -f3 | sort | uniq -c | sort -n
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.