ssh agent expiration on suspend/hibernate
August 25, 2008
Dear Lazyweb,
Is there a nice way to tell gnome-power-manager to run ‘ssh-add -D’ as me before suspending or hibernating?
Thanks
Just another WordPress.com weblog
Dear Lazyweb,
Is there a nice way to tell gnome-power-manager to run ‘ssh-add -D’ as me before suspending or hibernating?
Thanks
August 25, 2008 at 4:36 pm
pm-utils hooks?
August 25, 2008 at 6:22 pm
just put a script in /usr/lib/pm-utils/sleep.d/
check this script i use to make madwifi behave.
http://www.yum-extender.org/wiki/Fedora/InstallationNotes9?action=AttachFile&do=get&target=140madwifi
remember to chmod +x the script 🙂
September 4, 2008 at 12:45 pm
This was a feature planned for my ssh-agent-applet that I never got around to. I haven’t tested it on a recent Gnome so not sure how it runs these days.
More here:
http://freshfoo.com/blog/tags/ssh-agent-applet
If someone is interested I can try adding this feature.
Related question: does HAL or something else emit DBus events when the system is suspending or coming out of suspend?