mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-09 16:27:36 +08:00
197 B
197 B
sshrc.sh: Send mail while ssh login
pam.sh: Send mail while ssh login or logout, need add the follow line to /etc/pam.d/sshd
session optional pam_exec.so log=/var/log/login.log /etc/ssh/pam.sh