Debianzone

Filed undersecurity

See all posts on Posterous with this tag »

Sandeep Manne


Sandeep Manne's profile »

Tags

  • Configuration (5)
  • Others (3)
  • Administration (2)
  • Amazon Web Services (2)
  • Cloud Computing (2)
  • EC2 (2)
  • mysql (2)
  • Analytics (1)
  • EBS (1)
  • Grid Computing (1)
  • View all 33 tags »
  • HPC (1)
  • High Performance Computing (1)
  • Installataion (1)
  • LVM (1)
  • Log analyzer (1)
  • Log reader (1)
  • RAID (1)
  • Storage (1)
  • apache (1)
  • browsers (1)
  • cache (1)
  • chrome (1)
  • free cd (1)
  • links (1)
  • mail alert (1)
  • nginx (1)
  • replication (1)
  • security (1)
  • ssh (1)
  • ssl (1)
  • test (1)
  • tool (1)
  • ubuntu (1)
November 28, 2009

Mail alert for ssh login

  • Edit
  • Delete
  • Tags
  • Autopost
To get a mail when some logged into your linux system then follow this steps Edit .bashrc in root folder /root [shell] vi .bashrc [/shell] Add following line at end of the file [shell] echo 'ALERT - Root Shell Access (server name) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" yourmail@gmail.com[/shell]

Filed under  //

  • Others
  • mail alert
  • security
  • ssh
  • 0 responses
  • Like
  • Comment