Skip to content

blog.anichin.com

  • About

Send email on login

How do I set up an email alert when a ssh login is successful?

January 28, 2019 by angel

Original: https://askubuntu.com/questions/179889/how-do-i-set-up-an-email-alert-when-a-ssh-login-is-successful Since the sshrc method doesn’t work if the user has their own ~/.ssh/rc file, I’ll explain how to do this with pam_exec as @adosaiguas suggested. The good thing is that this can also be easily adapted to login types other than ssh (such as local logins or even all logins) by hooking into a different file in /etc/pam.d/. First you need to … Read more

Categories Howto, Ubuntu Tags Send email on login, SSH Leave a comment

Archives

Categories

Tags

.Net AI asp.net core Azure Azure DevOps Backup CenturyLink claude code Cooking dd-wrt docker Entware Fire TV freenas Git Greece Hyper-V IoT job search Kubernetes linux networking Nextcloud OpenVPN Oracle Cloud pfSense Plex Portainer Prometheus Proxmox Raspberry Pi RDP site-to-site VPN sitecore SQL Server SSH Synology Travel Ubuntu upgrade vpn Windows 11 wireguard WordPress Youtube
© 2026 blog.anichin.com • Built with GeneratePress