What's new

Email Notice from SSH event

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Weblee2407

Regular Contributor
I want to configure the router to email when an SSH session is established (and maybe ended) but I do not find any documentation for ssh-event like wan-event has written. I saw a thread on the topic when I was setting up VPN to notify, but can't find it now. Bad search skills, I'm sure.
 
You could write your email notification script, then call it with an entry in /jffs/configs/profile.add

Not sure how to handle disconnect though
 
You could also add a trap to the profile on EXIT.
Bash:
trap "/jffs/scripts/notify.sh" EXIT
That's exactly what I was thinking, a trap for EXIT and INT
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top