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.

My question is (very) similar to lazy prompt for ssh public key passphrase but the answer provided there (using GNOME keyring) doesn't really fit the bill (I'd rather have no reliance on X or any other graphical environment).

I'm looking for a solution that loads your SSH key in a lazy way, meaning that it only asks for a passphrase when the key is actually needed so it doesn't get in the way when you don't need it.

Are there any commandline solutions out there or some hooks I could use?

share|improve this question

1 Answer 1

Have you tried using ssh-agent? I think its one worth looking into, you just need to switch to using public key authentication and run agent on computer your connecting to elsewhere.

Other is using keychain, explained in: http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/

But its recommended only for scripting purposes. Passwords are there to improve security, incase your account gets compromised.

share|improve this answer
    
There is also keychain to use with SSH publickeys: cyberciti.biz/faq/… –  Jani Karlsson Aug 11 '13 at 14:43
    
I've been using ssh-agent and keychain for a while, my problem is in adding the key to the agent/keychain. Right now this happens when I first log in but I'd rather not have it ask for my passphrase until the first use of the key (as GNOME keyring does) –  Wim Aug 12 '13 at 19:24

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.