Git bash:ssh-add could not open a connection to your authentication agent

448    Asked by KobayashiSasaki in Data Science , Asked on Jul 14, 2021

I'm new to Github and Generating SSH Keys look a necessity. I successfully created SSH Key but when I'm going to add it to the ssh-agent

ssh-add ~/.ssh/id_rsa.pub
Could not open a connection to your authentication agent.

Answered by Diana Campbell

 If ssh-add could not open a connection to your authentication agent then you could use:

    exec ssh-agent bash
    eval ssh-agent -s
    ssh-add ~/.ssh/id_rsa

These commands will help in creating and adding ssh keys in ssh-agent.

What is the SSH agent?what does SSH agent do?

ssh-agent is a key manager for SSH. It holds your keys and certificates in memory, unencrypted, and ready for use by ssh . It saves you from typing a passphrase every time you connect to a server.



Your Answer

Interviews

Parent Categories