Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #1 (permalink)  
Old 07-04-2010, 10:03 PM
Member
 
Join Date: Jun 2010
Posts: 57
Default ROOT SSH login Alert

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.
Reply With Quote
  #2 (permalink)  
Old 07-05-2010, 06:06 PM
Member
 
Join Date: Jun 2010
Posts: 56
Default Starting from where?

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.
Reply With Quote
  #3 (permalink)  
Old 07-09-2010, 09:39 AM
Super Moderator (Host.co.in)
 
Join Date: Apr 2010
Posts: 57
Default

Try this:

Quote:

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.
Let me know how it goes.
Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 04:24 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0