Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2002
    Posts
    172

    * Email SSH Logins?

    Hi,

    How can I configure the system to send me an email whenever a user logons to his shell (SSH) account?

  2. #2
    Join Date
    Aug 2003
    Location
    Dallas, TX
    Posts
    16
    Two thoughts:

    1) Use something like logcheck to scan your syslog files every couple of minutes and email you things like when someone logs in.

    2) Use /etc/hosts.allow to have tcp_wrapper execute a script to log/email you connection information when it happens.

  3. #3
    Join Date
    Jul 2003
    Posts
    277
    If you use the Bourne shell (sh) or any of the compatibles (bash,ksh,ash,etc) look at /etc/profiles it get's executed (usually) when a user logs in, you can put a call to a script in there that gives you an email.
    Perl
    Java
    SQL

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •