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

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

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:

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:… – 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

You must log in to answer this question.

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