13

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.

  • 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
18

Found it elsewhere. I had to do this:

ssh-add ~/.ssh/id_rsa
| improve this answer | |
  • 2
    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
  • 2
    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
3

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.

    eval `ssh-agent`
    ssh-add ~/.ssh/id_rsa
| improve this answer | |
2

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.

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

| improve this answer | |

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.