3

I'm pulling my hair out on an ssh-agent issue..

I run a VPS under Ubuntu 16.04 and I setup a private/public key to be able to pull code from my Bitbucket repo. I initialized the repo, it all seemed to work fine, and a couple of days later, when I try to pull again, it tells me that the key is not valid.

ssh-add -l says "Could not open a connection to your authentication agent." - so I figure I just have to restart the ssh-agent.. but I always end up getting the same "Could not open a connection to your authentication agent." message.

me@ip:~/.ssh$ eval `ssh-agent -s`
Agent pid 3820
me@ip:~/.ssh$ ssh-add -l
Could not open a connection to your authentication agent.

I've tried rebooting the machine and attempting again but that's no good.. I've run out of ideas from all the posts I've read so.. any suggestions?

Buno
  • 183

1 Answers1

0

I set up ssh keys today for github.

This invokation was successful: eval "$(ssh-agent -s)"

Work through these short articles, they are very clear and concise

DWD
  • 294