dteske
dteske on Hacker News
This would be interesting. Would look forward to an HN post on this.
Edited/updated and thank you much for the feedback. Hope others will find the article a bit more clear with the edits I added.
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.
It has, but not notification center integration to nag you when it's used -- helpful for good security.
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
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