A sped-up Python coding session where I program a script to alert me (via SMS) whenever root logs in via SSH, or when someone uses 'sudo'. I've sped it up from ~2.5 hours to about 15 minutes, with a few breaks for explanation about my approach. None of the dead ends and wrong turns have been edited out, so have fun.
See the final script on Github: https://github.com/groovemonkey/sshalert -- plenty of room for improvement; feel free to contribute!
Watch video Python Project: Send a Text Message when root logs in online without registration, duration hours minute second in high quality. This video was added by user tutoriaLinux 23 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,058 once and liked it 247 people.