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.

I have ssh-agent set up to automatically start and prompt when I open a terminal window, as is explained here. It gets somewhat annoying though since many times when I open a shell I don't plan on using ssh for anything. Is there a way to delay this password prompt until I try to use ssh?

In other words, the first time I use SSH I want a password prompt, all subsequent times I don't want one, and I don't want one if I'm not about to use SSH.

share|improve this question
add comment

1 Answer

You'd have to write (or find) an agent proxy that would detect absence of the key in the agent and prompt for the passphrase when the key is requested, then load the key into the real agent.

share|improve this answer
    
Sounds like a weekend project to me. –  Clueless Oct 20 '10 at 8:18
2  
So, have you implemented it? –  Vi. Aug 20 '11 at 18:54
add comment

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.