Z
Z
Z_Coder2014-01-07 17:39:30
git
Z_Coder, 2014-01-07 17:39:30

Why doesn't ssh-add work in git?

Hello. I generate a pair of ssh keys with the ssh-keygen utility and the keys are generated perfectly, only after that the ssh-add id_rsa command issues: could not open a connection to your authentication agent . As I understand it, some ssh-agent is missing on my machine, or maybe this is not the problem? How to solve this problem?
I use msysgit on windows 8.
Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Z_Coder, 2014-01-07
@Z_Coder

For beginners like me, it turns out that this damned ssh-agent needs to be run before ssh-add:
eval `ssh-agent.exe`.

A
Andrey Ashgaliyev, 2016-02-03
@h0001

In .bashrc, you need to write the code to start the agent (Step 4)
Bitbucket 101

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question