Resolve the "Could not open a connection to your authentication agent under Git client MINGW32."

Source: Internet
Author: User
Tags git client

With git, you want to do ssh with GitHub after you download the client

The following conditions occur:

[Email protected] MINGW32 ~/.ssh
$ Ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.

Workaround:

"Workaround" requires ssh-agent to start bash, or to hang bash under ssh-agent.

"Concrete Method"

[email protected] $ ssh-agent bash--login-i
[email protected] $ ssh-add ~/.ssh/id_rsa

Then appears:

[Email protected] MINGW32 ~/.ssh
$ Ssh-add ~/.ssh/id_rsa
Enter Passphrase For/c/users/hadoop/.ssh/id_rsa:
Identity added:/c/users/hadoop/.ssh/id_rsa (/C/USERS/HADOOP/.SSH/ID_RSA)

Then:

[Email protected] MINGW32 ~/.ssh
$ ssh-t [email protected]
Hi holledeng! You've successfully authenticated, but GitHub does not provide shell access.

You can do it.





Resolve the "Could not open a connection to your authentication agent under Git client MINGW32."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.