Could not open a connection to your authentication agent on Ubuntu 9.10 Linux

I just run into this when tried to enable Github SSH to perform git push.

The workaround is to run command

`eval ssh-agent`

Which sets series on environment variables making ssh-add to work.

I don’t know why this doesn’t work anymore – I am quite sure it worked on earlier Ubuntu versions out of the box.

Related bug report.

2 thoughts on “Could not open a connection to your authentication agent on Ubuntu 9.10 Linux

  1. Hi,

    Where exactly do you run this? It works when I do it within a shell, but as soon as I leave and come back, I have to redo it again.

    The problem is that I need this to be set at a system level because I’m using a script that will automatically download the latest version off github to run tests on it.

    Any ideas?

    Thx.

  2. Shouldn’t that be:

    eval `ssh-agent`

    I.e. you have to eval the *output of* ssh-agent.

Leave a Reply

Your email address will not be published. Required fields are marked *