Changes

From Amahi Wiki
Jump to: navigation, search
84 bytes added ,  00:47, 3 November 2014
no edit summary
This guide shows a simple way to know when someone logged in as root or normal user using [[Key-Based SSH Logins|Secure Shell (SSH)]]. It will send an email alert notification to the specified email address along with the IP address of last login.
'''NOTEPREREQUISITE:''' You must have configured your HDA to send emails. One way to do so is by following the [[Outgoing_mail_via_gmail|Outgoing mail via Gmail]] guidance.
== Method 1 ==
echo $TEXT|mail -s "SSH Login" name@domain.com
fi</pre>
 
:'''NOTE:''' Ensure you replace name@domain.com with your email address.
 
You should not get an email anytime a user logs into your HDA via [[Key-Based SSH Logins|Secure Shell (SSH)]].
12,424

edits