.. | ||
.gitignore | ||
mail_on_ssh.conf.example | ||
mail_on_ssh.sh | ||
README.md |
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