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 09-18-2003, 06:22 PM
Mans Mans is offline
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?

Reply With Quote


Sponsored Links
  #2  
Old 09-19-2003, 03:32 AM
RocketCowboy RocketCowboy is offline
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.

Reply With Quote
  #3  
Old 09-19-2003, 03:48 AM
OverlordQ OverlordQ is offline
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

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
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
Dropbox says Security Breach Caused by Stolen Employee Password Web Hosting News 2012-08-01 15:28:15


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:



 

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?