SSH Auto Email.

Punk

New Member
Hi there, first time poster, first time VPS owner. I've just gotten my VPS set up and was wondering where the setting is to turn off the auto-email function for everytime a login occurs, or at least where to change the email it goes to.

Thanks
 

kingtas

New Member
I believe that's a CSF function. You don't want to disable that as it is always a good idea to know when and what IP is accessing your VPS so you can take appropriate action if you're VPS is compromised.
 

Punk

New Member
Thanks for the fast response. I completely agree with the security aspect of it. I would however like to change the email it sends too, mainly because it's strange to login and have my pants start buzzing from my email on my phone...
 

mwh

New Member
login to your vps as root

1.
Code:
cd /root
2.
Code:
pico .bashrc
3.
Code:
echo 'ALERT - Root Shell Access (ServerIdentify) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" you[@]yourdomain.com

only if you found the code in .bashrc :D , make sure change ServerIdentify and you[@]yourdomain.com with yours
 
Top