OT launchd sleep and wake
Kristofer Henriksson
kthenriksson at gmail.com
Fri Aug 7 12:25:33 PDT 2009
Off the top of my head, I can't speak as to detecting sleep/wake on a Mac.
For clearing SSH keys, I'm surprised that stopping ssh-agent fails.
However, there is also the command ssh-add -D which is meant to remove
all keys from the agent. This should be what you are looking for.
Regards,
Kris Henriksson
On Fri, Aug 7, 2009 at 2:43 PM, Scott Haneda<talklists at newgeo.com> wrote:
> Before I jump over to the launchd mailing list, I wanted to see if anyone
> knew a way to detect a Mac going into sleep mode or waking from sleep mode.
>
> I'm looking to clear ssh-agent which is becoming an issue in and of itself.
> I was hoping there may be a file that was created or destroyed in wake/sleep
> that I could set launchd to look at as a watch folder.
>
> Or perhaps there are commands that can probe the PMU to get this data.
>
> I'm aware of sleepwatcher, which seems to work semi ubreliably, so I am
> looking for an alternative.
>
> I know sshkeychain has this ability, and while it is no longer developed,
> there is a chance I could pull just that code out and make a portfile that
> created a sleep/wake watching agent.
>
> Thanks for any suggestions.
>
> As an aside, if anyone has had success with clearing ssh keys from memory so
> you are re prompted via keychain I would love to know how you are reliably
> doing this. Stopping the agent does not seem to reliably clear the keys.
> There is not a ton of data on this, but I would like to use a laptop and
> know if it is stolen my ssh sessions will expire.
>
> I can not find a mailing list specific the ssh-agent, I assume the best
> place is the openSSH list, but this is also Apple specific since there is
> keychain interaction.
>
> Thanks
> --
> Scott
> Iphone says hello.
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
>
More information about the macports-dev
mailing list