server-scripts/mail_on_ssh/README.md

316 B

Installation

After setting up mail_on_ssh.conf, add the following configuration to /etc/pam.d/sshd

# Send an email if somebody logs in successfully over SSH
session    optional     pam_exec.so seteuid $PATH2SERVER_SCRIPTS/mail_on_ssh/mail_on_ssh.sh -c $PATH2SERVER_SCRIPTS/mail_on_ssh/mail_on_ssh.conf