Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Why does the could not open a connection to your authentication agent error occur?
Next
Answered
Maël Fernandes
  • 32
Maël Fernandes
Asked: May 11, 20222022-05-11T18:24:42+00:00 2022-05-11T18:24:42+00:00In: Programs

Why does the could not open a connection to your authentication agent error occur?

  • 32

. Advertisement .

..3..

. Advertisement .

..4..

I get the error message:

$ git push heroku master
 Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
 ! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter.
$ ssh-add ~/.ssh/id_rsa.pub
 Could not open a connection to your authentication agent.

Has anyone ever faced this problem? How to troubleshoot could not open a connection to your authentication agent.

could not open a connection
  • 2 2 Answers
  • 50 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-05-27T02:42:00+00:00Added an answer on May 27, 2022 at 2:42 am

    The cause: The ssh-agent is not running.

    Solution: We need to start the ssh-agent before we use ssh-add If you are using zsh on Ubuntu or Mac the following is the suggestion:

    eval `ssh-agent -s`

    You could also try the following if the above doesn’t work on your system:

    Bash

    exec ssh-agent bash

    Zsh

    exec ssh-agent zsh

    Fish

    exec ssh-agent fish

    Another solution

    Shutdown your computer and restart it. If you don’t feel like restarting you will use the first command provided.

    • 2
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Léa Chartier
    2022-05-26T03:57:19+00:00Added an answer on May 26, 2022 at 3:57 am

    Did you start ssh-agent?

    Before you can run ssh-add, you might need to restart ssh-agent.

    eval `ssh-agent -s`
    ssh-add

    This will launch the msysgit Bash agent on Windows. You might need to use another shell or operating system in order to execute the command.

    These are the answers:

    1. ssh–add complains: Couldn’t open a connection with your authentication agent
    2. Git Push requires username and password. (Contains detailed instructions for how to use the ssh agent)
    3. How do you run (git/ssh), an authentication agent?
    4. Couldn’t open a connection with your authentication agent

    You can automatically start ssh agent and have one instance work in multiple console windows. See Start SSH-Agent on Login.

    • 17
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.