Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
179 B

  1. #! /usr/bin/env bash
  2. LOGINS=5
  3. echo ""
  4. echo "Last $LOGINS SSH accepted logins"
  5. grep Accepted /var/log/auth.log | tail -n $LOGINS | cut -f 1,2,3,11,15,16,17,18,19,20,21,22 -d " "