I want to enable SSH on my Mac, but I want to be notified when someone tries to log in.
I'm running on a non-default port, so attempts should be rare.
I'm currently running a growl notification in
.profile, but I'm not sure that is fool-proof, and I'd rather have email.
lgn=`who | grep "("` if [ -n "$lgn" ]; then growlnotify login -m $lgn fi