Simple ssh login email notification

March 21, 2018

    echo -n 'ALERT - Shell Login (a-server) on:' `date` `who` | mail -s "Alert: Shell Login from `who | cut -d"(" -f2 | cut -d")" -f1`" admin@google.com