hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Email SSH Logins?

Forum Jump

Email SSH Logins?

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
WHT Addict
Join Date: Jan 2002
Posts: 172

Email SSH Logins?


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

Sponsored Links
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.

Web Hosting Guru
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.


Sponsored Links

Related posts from
Title Type Date Posted
Hostopia Listing 2015-01-28 21:27:02
PacHosting Listing 2015-01-16 01:34:49
SMTP2GO Email Listing 2014-12-27 08:47:44
SpamExperts Listing 2014-12-15 14:40:09
Hackers Steal User Login Information from AVAST Anti-Virus Forum Web Hosting News 2014-05-27 13:46:25

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?