News for hackers. Stuff that matters.

dteske

Re:SSH agent notifications for OS X on Sunday May 04, 2014 @04:03PM (#7695558)
This would be interesting. Would look forward to an HN post on this.
Re:SSH agent notifications for OS X on Sunday May 04, 2014 @01:13PM (#7694958)
Edited/updated and thank you much for the feedback. Hope others will find the article a bit more clear with the edits I added.
Re:SSH agent notifications for OS X on Sunday May 04, 2014 @01:43AM (#7693402)
When I first wrote the article, I wasn't aware that things like /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist existed prior to Mavericks. Shouldn't detract from the value of the article though which is to add Notifications. Last Mac I had I didn't recall it automatically launching a Keychain aware ssh-agent on-demand.
Re:SSH agent notifications for OS X on Sunday May 04, 2014 @12:04AM (#7693248)
It has, but not notification center integration to nag you when it's used -- helpful for good security.
Re:SSH agent notifications for OS X on Saturday May 03, 2014 @11:00PM (#7693155)
What's changed is that in Mavericks (really Mountain Lion or higher) we have the Notification Center. No longer do we have to rely on 3rd party software such as Growl to get notifications. However, Apple has not yet hooked ssh-agent into the Notification Center. This blog starts off kind of slow by first introducing folks not familiar with the existing Keychain/launchd integration and then goes on to follow that up by talking about future integration with Notification Center (providing working code and binary for others to experience a Notification Center aware ssh-agent). -- Devin
Re:SSH agent notifications for OS X on Saturday May 03, 2014 @10:56PM (#7693143)
The source code can be compiled by cloning https://github.com/devinteske/apple and then:

cd OpenSSH-186/openssh ./configure --with-pam --with-audit=bsm make

You can see from my commits at the following URL what I had to change to add support for Notification Center.

https://github.com/devinteske/apple/tree/master/OpenSSH-186/...

Namely I changed the following:

openssh/Makefile.in openssh/ssh-agent.c openssh/ssh-agent-notify.m [new] openssh/ssh-agent-notify.h [new]

As for the OpenSSH version, Apple forks OpenSSH and then adds things like Keychain and launchd(8) support. So if you want a later version while retaining those features, you'll have to get Apple's customizations applied to a later non-Apple version or wait until Apple does it themselves. Migrating my changes into a non-Apple version simply to say you have the latest version of OpenSSH would mean that you lose keychain and launchd(8) integration. -- Devin