17

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.

2
  • Is ssh-agent running in the background?
    – Grumbel
    Apr 21, 2010 at 15:50
  • @Grumbel: Yep, it is. Apr 21, 2010 at 16:25

3 Answers 3

24

Found it elsewhere. I had to do this:

ssh-add ~/.ssh/id_rsa
3
  • 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. Apr 22, 2010 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, 2013 at 22:30
  • 1
    +1 thank you - this helped me when I got: "An application wants to access the private key but its locked" - on running the above, it asked for the passphrase - which was the password I used when creating the key - and on supplying that, that worked - I was now able to pull from bitbucket. Mar 28, 2021 at 20:04
7

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

You must log in to answer this question.

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