Skip to main content

The client tool ssh-add wants to communicate with the background process ssh-agent. You need to initializestart the ssh-agent process first. On Linux, an Shell uses the environment variables SSH_AUTH_SOCK and SSH_AGENT_PID to identify the correct process to talk to.

You can do thisstart ssh-agent in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the script returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

You need to initialize ssh-agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the script returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

The client tool ssh-add wants to communicate with the background process ssh-agent. You need to start the ssh-agent process first. On Linux, an Shell uses the environment variables SSH_AUTH_SOCK and SSH_AGENT_PID to identify the correct process to talk to.

You can start ssh-agent in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the script returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

deleted 1 character in body
Source Link
Panki
  • 7.1k
  • 3
  • 28
  • 37

You need to initialize the agentssh-agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the variablesscript returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

You need to initialize the agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the variables returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

You need to initialize ssh-agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the script returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

Add the eval method to avoid creating a new shell instance
Source Link
Panki
  • 7.1k
  • 3
  • 28
  • 37

You need to initialize the agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the variables returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

You need to initialize the agent first.

ssh-agent bash

You need to initialize the agent first.

You can do this in multiple ways. Either by starting a new shell

ssh-agent bash

or by evaluating the variables returned by ssh-agent in your current shell.

eval "$(ssh-agent)"

I suggest using the second method, because you keep all your history and variables.

Source Link
Panki
  • 7.1k
  • 3
  • 28
  • 37
Loading