G
G
GineTik2022-04-19 16:45:24
git
GineTik, 2022-04-19 16:45:24

ssh-add command not working (Could not open a connection to your authentication agent), how to fix?

I want to execute a command ssh-add ~/.ssh/id_rsa.pubin git bash.
After executing I get a response:

Could not open a connection to your authentication agent
.

I tried typing eval "$(ssh-agent -s)"and eval `ssh-agent`it didn't help. After executing these commands, nothing was displayed! Although, before Avast closed ssh-agent, it gave some kind of answer (I don’t remember which one).

Avast considered ssh-agent a threat and closed the service, but I was able to open it again using this answer

key( ~/.ssh/id_rsa.pub) I have

I work on Windows 10

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GineTik, 2022-04-19
@GineTik

It turns out that Avast placed the ssh-agent.exe file in the quarantine zone, but I didn’t notice,
now everything works!

T
TheAndrey7, 2022-04-19
@TheAndrey7

  1. Remove the garbage called "Avast"
  2. Windows 10 has a built-in SSH client along with an agent. It is included in the system components + you must manually activate the start of the agent service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question