hosted by liquidweb


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

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
  #1  
Old
WHT Addict
 
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?



Sponsored Links
  #2  
Old
Newbie
 
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  
Old
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.

__________________
Perl
Java
SQL

Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Code Spaces Closes Shop After Hacker Deletes Customer Data Web Hosting News 2014-06-19 16:34:41
Hackers Steal User Login Information from AVAST Anti-Virus Forum Web Hosting News 2014-05-27 13:46:25
Cloudmark Shares Strategies to Avoid Email Blacklisting, Improve Deliverability Blog 2013-05-31 14:57:24
Name.com Resets Customer Passwords After Security Breach Web Hosting News 2013-05-13 14:43:19
eleven Email Security Report Finds European Countries Top Spam Senders in October, November Web Hosting News 2014-05-01 08:22:32


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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?