SSH login notification on email

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

SSH login notification on email

Postby lik » Mon Aug 03, 2009 8:57 am

Add following line to ~/.bash_profile:
Code: Select all
echo -e 'ALERT - Root Shell Access on:\n' `who -m` '\n' `date` | mail -s "Successfull Root Login" [email protected]
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific

cron