Are you looking to get certified in DevOps, SRE and DevSecOps?
Get Certified!
Ahead from others!
Security is Key
Tomorow's Platform!

“Key is already in use” of How to use 2 public key in github

Error 1:

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

Solution 1 –


Error – 2

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Solution – 2

eval ssh-agent -s
ssh-add ~/.ssh/id_rsa_rajesh.cotocus

I had to change the [remote "origin"] / url field in my local .git/config to use the Host defined in .ssh/config in order for this to work, i.e.,

[remote "origin"]
        url =
Without that modification, git would just try to use my default ssh key.
Rajesh Kumar
Follow me