[CentOS] E-Mail on SSH login?

Benjamin Donnachie benjamin at py-soft.co.uk
Mon Nov 2 22:34:55 UTC 2009

2009/11/2 ML <mailinglists at mailnewsrss.com>:
> Does anyone have thoughts on how to kick off an e-mail on SSH login?

Make SSH use PAM for authentication and use the pam_preprofile[1]
module to execute and appropriate script.  You should test with
public/private key logins to ensure that it also works for those.


[1] http://www.kernel.org/pub/linux/libs/pam/pre/modules/pam_preprofile.tgz

More information about the CentOS mailing list