How can I flush my ssh keys on power management activity?

Posted by Sam Halicke on Server Fault See other posts from Server Fault or by Sam Halicke
Published on 2010-11-09T14:24:53Z Indexed on 2011/01/01 4:55 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

Hi all,

Using ssh-agent and private keys per the usual. Everything's working as normal.

My question regards best practices on flushing keys from ssh-add on activity like sleep, suspend, hibernate, etc. I thought about writing a simple wrapper around those commands, but then wondered if are they even called? Or does the kernel initiate this activity directly? Are the PM utilities strictly userland?

I would like this additional layer of security beyond locking my screen, etc. and was wondering if anyone else had solved this elegantly or has best practices to recommend. Thanks.

© Server Fault or respective owner

Related posts about linux

Related posts about security