If you are using an ssh agent, it is a good idea to delete the keys when you lock the screen or sleep your laptop. On Mac OS X you can do this with Hammerspoon: <a href="http:&#x2F;&#x2F;fanf.livejournal.com&#x2F;139925.html" rel="nofollow">http:&#x2F;&#x2F;fanf.livejournal.com&#x2F;139925.html</a>