Activity Stream
48,167 MEMBERS
6800 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    ihide.info experthide.com hideonthe.net

    Default [TUT] Get emails when someone logins into SSH

    Hey,

    This is quick tut that basically show you how to make it so that when someone logs in ssh you get a detailed email with their ip, host, ect.

    Lets get started

    Step 1 :
    Code: 
    cd /root
    Step 2 :
    Code: 
    pico .bashrc
    Step 3 :
    Scroll to the end of the file and add this.
    Code: 
    echo 'ALERT - Root Shell Access (YourserverName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" you@yourdomain.com
    Replace YourserverName with the name of your actual server
    Replace you@yourdomain.com with your actual email address.

    Step 4 :
    Code: 
    Crtl + X  then Y

    And their you go. All done . To test log out of ssh and re-log back in. You should receive an email.
    .:Raymond:. Reviewed by .:Raymond:. on . [TUT] Get emails when someone logins into SSH Hey, This is quick tut that basically show you how to make it so that when someone logs in ssh you get a detailed email with their ip, host, ect. Lets get started :) Step 1 : cd /root Step 2 : Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Email Example ::


  4.     
    #3
    Member
    Website's:
    EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.com
    pico isn't used anymore.
    pico .bashrc
    Use:
    nano .bashrc
    Lastly, If you're on cPanel and use CSF (ConfigServer Firewall) this does it for you and therefore no need to do this.
    EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
    MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
    Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
    ImgWiz - (Free Image Hosting)

  5.     
    #4
    Member
    Website's:
    ihide.info experthide.com hideonthe.net
    @Cory

    Hm didnt even notice i put pico. Also this tut is for general linux. Not all people have csf installed

  6.     
    #5
    Member
    Very useful, thanks!

  7.     
    #6
    Member
    Website's:
    host4offshore.com
    you can do it using csf alert option
    || Host4Offshore :: Reliable, Quality, Fast Offshore Hosting Solution (USA/Netherlands/Sweden/Russia/Romania)
    || Shared , Reseller Hosting Sales Thread
    || Rapidleech Hosting Sales Thread
    || Current Promotion

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get free porn site logins
    By Speakup in forum Tutorials and Guides
    Replies: 24
    Last Post: 15th Nov 2011, 09:51 AM
  2. [Buying] templates + logins for MP5
    By antpeks in forum Completed Transactions
    Replies: 5
    Last Post: 2nd May 2011, 10:08 PM
  3. How to log commands/logins in linux?
    By tdsii in forum Hosting Discussion
    Replies: 1
    Last Post: 3rd Mar 2011, 04:43 PM
  4. How many registered user logins do you get per day?
    By woja in forum Webmaster Discussion
    Replies: 8
    Last Post: 13th Feb 2011, 04:10 PM
  5. [WTB] Porn Logins
    By Speakup in forum Completed Transactions
    Replies: 1
    Last Post: 1st Dec 2009, 02:01 AM

Tags for this Thread

BE SOCIAL