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

I ran some X applications using ssh -Y my_address and now it asks me to unlock my RSA key every time I use it. I used to only have to unlock it once a day. What's going on?

I'm using Ubuntu 9.04.

share|improve this question
    
Is ssh-agent running in the background? – Grumbel Apr 21 '10 at 15:50
    
@Grumbel: Yep, it is. – Benjamin Oakes Apr 21 '10 at 16:25
up vote 6 down vote accepted

Found it elsewhere. I had to do this:

ssh-add ~/.ssh/id_rsa
share|improve this answer
    
Ugh... it happens again when I restart my computer. Running this command fixes it, but it doesn't seem like I should have to do this every day. – Benjamin Oakes Apr 22 '10 at 15:58
1  
create a startup script that runs this command at boot. or adjust your crontab to run it daily. – Ben Plont Aug 19 '13 at 22:30

I am sure you have fixed this by now, but you might be interested to see a response to a question I recently asked on AskUbuntu.

http://askubuntu.com/questions/36255/why-wont-ssh-agent-save-my-unencrypted-key-for-later-use/36302#36302

share|improve this answer

For anyone who get's a Could not open a connection to your authentication agent when executing ssh-add will need to start ssh-agent first.

ssh-agent
ssh-add ~/.ssh/id_rsa
share|improve this answer

You must log in to answer this question.

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