Start the ssh-agent in the background using below command

eval "$(ssh-agent -s)"

Add you key to ssh agent

ssh-add ~/.ssh/id_rsa

it will also going to solve error of “Could not open a connection to your authentication agent.”