Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .