This guide shows a simple way to know when someone logged in as root or normal userusing [[SSH]]. It will send an email alert notification to the specified email address along with the IP address of last login.
* [[Open_Terminal|As root user]] create ''ssh_email_alert.sh'' with the following text: