I'm using Mac OS X 10.8.3 and openssh, basically I have the inverse problem to most people in that I want to make my laptop automatically lock the keychain (specifically my private key) every time I close the lid or just more frequently.

I can't seem to find any way of setting this option in the keychain app. Does anyone have any idea on how I can configure this? It's just way too relaxed at the moment.

  • Are you storing your SSH key integrated with a Keychain, or are you using no OS X specific SSH functionality? – Daniel Beck Apr 26 '13 at 16:01

In Keychain Access, right-click the keychain in question, and select Change Settings for Keychain "Name". Check Lock after… minutes of inactivity and Lock when sleeping.


  • The screenshot makes this answer a winner :) – John Hunt Apr 30 '13 at 15:41

KeychainAccess > Preferences in the General tab tick the option Show keychain status in menubar

this will put an icon in the menu bar that has options to lock the keychain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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