1

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

4
  • 2
    SSH keys without a passphrase?
    – Hennes
    Dec 8, 2012 at 18:24
  • how about setting the lifetime for your keys in the ssh agent to 0?
    – l1zard
    Dec 8, 2012 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, 2012 at 20:20
  • Mac OSX (latest)
    – user27449
    Dec 8, 2012 at 20:31

1 Answer 1

0

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

You must log in to answer this question.

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