/ Published in: Bash
Put this in /etc/profile
Expand |
Embed | Plain Text
echo "`whoami` has logged in on `date` from "$SSH_CONNECTION | /usr/bin/mail -s "Server Login" email@server.com
You need to login to post a comment.
Put this in /etc/profile
echo "`whoami` has logged in on `date` from "$SSH_CONNECTION | /usr/bin/mail -s "Server Login" email@server.com
You need to login to post a comment.