jump to navigation

Be Notified of SSH Logins with Notifo September 11, 2010

Posted by Robert Harder in Utility.
Tags: , , ,

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.


1. Shelby - December 21, 2010

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. Robert Harder - December 21, 2010

@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 13, 2011

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

4. Robert Harder - December 13, 2011

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

5. Dis McCarthy - December 15, 2011

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.


6. M van Maurik - January 30, 2012

Dis McCarthy

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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: