Security

In a new shell session, an administrator runs ssh-add ~/.ssh/id_ed25519 and receives the error "Could not open a connection to your authentication agent." No agent is running for this session. Which action BEST resolves the problem?

Show the answer

Correct answerD. Run eval "$(ssh-agent -s)" in the shell, then run ssh-add again

Evaluating the ssh-agent output exports SSH_AUTH_SOCK and SSH_AGENT_PID into the shell so ssh-add can reach the agent. Running ssh-agent alone only prints those variables, so the shell never receives them.