Posted By

r0b0tnic on 01/25/10


Tagged


Versions (?)

Send email out on SSH login


 / Published in: Bash
 

Put this in /etc/profile

  1. echo "`whoami` has logged in on `date` from "$SSH_CONNECTION | /usr/bin/mail -s "Server Login" email@server.com

Report this snippet  

You need to login to post a comment.