/ Published in: Bash
![](/img/icon_sav.png?v3)
Put this in /etc/profile
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
echo "`whoami` has logged in on `date` from "$SSH_CONNECTION | /usr/bin/mail -s "Server Login" email@server.com
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
echo "`whoami` has logged in on `date` from "$SSH_CONNECTION | /usr/bin/mail -s "Server Login" email@server.com