Permission denied (PublicKey) appears under Windows GitHub. Workaround

Source: Internet
Author: User
Tags using git

Today in the study of GitHub encountered some problems, and then climbed for a while, found a solution to record, in case forget, of course, can help others the best!

GitHub Textbook Portal: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

Learn to "Add remote Repository" When you encounter Permission denied (PublicKey) This problem,

In summary, the previous steps are as follows:

1, git config--global user.name "Usernme"

2, git config--global user.email "EmailName"

3. Git bash into the project directory: Git init

4. Add files to the library using git add filename

5. Commit using Git commit-m "first commit"

6. Local and warehouse pairing git remote add origin [email protected]:eoooxy/git_test.git

7. Push local content to the repository Git push-u Origin master

8, then the next ideal state is submitted to the remote warehouse, but this side he gave an error:

So I was embarrassed. Then Baidu the next solution is, mister into a key, the command is: ssh-keygen-t RSA, then there are the following tips

The first red line of the box should be let you put the input to save the name, the second basket is to enter the password, empty on the No password (English is the physical education teacher taught, good sad ah!) )

Then here is a series of unknown things ... The file is generated in the current path of the

Then the cat windows.pub will have a bunch of numbers

Copy public key (a string of numbers in Windows.pub) to your account's list of SSH keys and push again.

To this I did not succeed and then on the internet again, said the following command to test under:

$ ssh-v [email protected]

And then I found out.

He was looking for the public key at the bottom of my C drive, and the name was Id_xxx, and the space I generated was in D, and then I renamed Window Id_rsa, and then I tested it again.

Anyway, I can not understand Permission denied (PublicKey) error is right ...

And then it's OK in the push generation to the warehouse.

The above is the solution!

Thank you: http://blog.csdn.net/xzz_hust/article/details/8969090

   https://www.oschina.net/question/1182280_118510

Permission denied (PublicKey) appears under Windows GitHub. Workaround

Related Article

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.