I am a little new to Python, but an experienced programmer. I am writing a Python 2.7 script that should be run by the Linux server at boot time. The goal is to send notifications (s) through various media when a user connects to the server.
My problem is with the actual listening. How can I make the module see when the user connects (via SSH or something else) to the server? Some quick pseudo codes:
I would like to include some details in the notification, such as username, IP, connection time, last connection, nice connection message, whatever. Any gaps on how to do these things best are also appreciated, but I'm sure I can figure it out elsewhere.
Thank you in advance for any guidance!
David gay
source share