Home > Utility > Be Notified of SSH Logins with Notifo

Be Notified of SSH Logins with Notifo

I’ve been finding all kinds of neat uses for Notifo, a multipurpose notification tool for the iPhone, and I wanted to be notified when anyone (should only be me) logged in to my home computer via SSH. I wrote a Pluggable Authentication Module (PAM) that sends a notice to Notifo whenever someone logs in or activates the PAM module another day (yes, I know that “PAM module” is redundant).

Check it out on SourceForge at http://iharder.net/pam_notifo. I developed it on a Mac. I don’t know if it will compile properly on Linux. Please try it out.

Categories: Utility Tags: , , ,
  1. December 21st, 2010 at 13:39 | #1

    Robert, awesome plugin. still trying to get it to work on my Ubuntu machine though… and its not wanting to compile with the make command yet :/

  2. December 21st, 2010 at 17:44 | #2

    @Shelby Let me know what you have to do to make it Ubuntu-compatible. I tried to make the software as simple as possible to help with porting. Good luck!

  3. Dis McCarthy
    December 13th, 2011 at 15:46 | #3

    I can send a patch that got it working for me on Ubuntu, just need to know where to send it.

  4. December 13th, 2011 at 20:36 | #4

    @Dis That’s great! Stick it on pastebin.com and then post the link. Thanks.

  5. Dis McCarthy
    December 15th, 2011 at 09:10 | #5

    The commandline processing is a hack, but it works. Almost certainly contains possible buffer overflows and such though, so treat with care. Should be OK once it is installed and configured. (I tested via ssh – opened a local root console, edited pam.d/sshd to enable the module, then ssh’d to localhost from a different console. If it -really- broke, I had the root console and could disable it again, although I never needed to. Pam just threw errors when it broke and moved on, and when it worked I got my notifications.) Once it is working, it can be added to common-session to notify about everything – ssh, local console, local X, etc.

    http://pastebin.com/VJ9KTQDU

  6. M van Maurik
    January 30th, 2012 at 03:06 | #6

    Dis McCarthy

    I see you manage it to get it working on a linux box.
    Can you please explain how you did it?

    Thanks,

  1. July 20th, 2017 at 05:45 | #1