cPanel Troubleshooting

How to Change SSH Legal Message

edit /etc/motd, write in motd something like this:

“ALERT! That is a secured area. Your IP is logged. Administrator has been notified”

When someone logins into SSH he will see that message:
ALERT! That is a secured area. Your IP is logged. Administrator has been notified

If you want to recieve an email every time when someone logins into SSH as root, edit .bash_profile(It’s located in /root directory) and put this at the end of file:

echo ‘ALERT – Root Shell Access on:’ `date` `who` | mail -s “Alert: Root Access from `who | awk ‘{print $6}’`” mail@something.com

And at the end restart SSH:

service sshd restart