Git over SSH. SSH agent issues

If you try ‘ssh-agent’ at GitBash, you will just get some script to the console, like this:

$ ssh-agent -s
SSH_AUTH_SOCK=/tmp/ssh-ZRoqi10160/agent.10160; export SSH_AUTH_SOCK;
SSH_AGENT_PID=16056; export SSH_AGENT_PID;
echo Agent pid 16056;

So you need to tell Bash to execute the output of the command by doing:

eval $(ssh-agent)

More on that here:
http://stackoverflow.com/a/21909432/1036405

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: