ssh-agent / ssh-add error: could not open a connection to your authentication agent
You’re supposed to execute the output that you get back from ssh-agent
, like this: eval $(ssh-agent)
Then your environment is set up for ssh-add
to connect to the agent.
You may also use the following syntax:
ssh-agent sh -c 'ssh-add && echo Do some stuff here.'