Hey there, another question that I should probably know the answer to but here goes: How can I set my ROOT SSH login Alert. Any help or suggestions welcome. Thanks.
Hey there, another question that I should probably know the answer to but here goes: How can I set my ROOT SSH login Alert. Any help or suggestions welcome. Thanks.
Do you need to know the whole process or is there a certain place you can get to and then are getting stuck. Let us know and we might be able to help you out with that.
Try this:
Let me know how it goes.
Edit the file .bashrc. pico /root/.bashrc
At the end of the file add this line:
echo 'ALERT - Root Shell Access YOURSERVERNAME on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" email@mydomain.com
Save the file.
You need to replace "YourServerName" with the name of your server and email@mydomain.com with the actual email address.
Bookmarks