/ Published in: Bash
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