Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any cool tool that encrypts your ssh keys and locks it down when you shutdown or put your computer to sleep?

So in case someone steals your laptop, they can't get into your servers etc.?

share|improve this question
2  
SSH keys without a passphrase? –  Hennes Dec 8 '12 at 18:24
    
how about setting the lifetime for your keys in the ssh agent to 0? –  l1zard Dec 8 '12 at 18:51
    
What OS is that? For both Linux and Windows/cygwin, my .ssh dir points to another dir in a crypted image/volume. –  ott-- Dec 8 '12 at 20:20
    
Mac OSX (latest) –  user27449 Dec 8 '12 at 20:31

1 Answer 1

If you are on *nix

The ssh agent is controled by the user using the command ssh-add The agent asks the user for password and manages how long a socket stays open and where the keys gets stored using *$SSH_AUTH_SOCK* variable

You can for example lock the agent with

ssh-add -x 

maybe you can execute this commands before the computer shutdown or sleep and unlock the agent with

 ssh-add -X

an other way would be to set the lifetime of keys used by the agent to limited time like this:

ssh-add -t seconds
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.