Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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

Error 1:

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

Solution 1 –

  • https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent

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 = git@github.com-activehacker:activehacker/gfs.git
Without that modification, git would just try to use my default ssh key.
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.