a blog for those who code

Friday 20 June 2014

Run ssh authentication agent

How to Fix "Could not open a connection to your authentication agent". If you are getting this error, at first add a ssh key for the connection to the remote repository. Suppose you have added a ssh key for the connection to the remote repository, after that also if you are getting an error like "Could not open a connection to your authentication agent", make sure that your ssh-agent process is running.

If your ssh-agent process is not running you can run the agent using the following command

cd ~/.ssh
eval $(ssh-agent)

The first command is used to change the directory to the .ssh directory and then run the eval command to run the ssh-agent process.

Sometimes it happens that more than one ssh agent process is running which also might be the problem. To see that if more than one ssh-agent process is running or not you can run the following command.

ps aux | grep ssh

If you see more than one ssh-agent process is running you need to kill all the ssh-agent process, and then you have to start the process once again using the above method.

Please Like and Share the Blog, if you find it interesting.

No comments:

Post a Comment