Tool-github no git push error under Linux

Source: Internet
Author: User

Time:2015/12/25

1. Description:

Error:the requested URL returned error:403 Forbidden while accessing https://github.com ...

2. Spit Groove:

On the Internet a random search a lot of copies are all kinds of, said put. Git/config below ["origin"] the following URL changed, as shown below

" Origin " ]      = https://github.com/username/example.git  
" Origin " ]      = https://[email protected]/username/example.git  

As a result, there is no bird to use, and finally in the stack overflow above the problem solved. If it's the same as me. The above method does not solve the problem, you can see if the following workaround is available ...

3. Reason:

(1) Reference [1] The most votes (so far, 475 votes support) said: Although the display of HTTPS support read and write, GitHub seems to only support SSH read and write. This github still supports HTTPS, because I have two Linux, one is initially configured with HTTPS, and the other is SSH, can read and write. That I guess is not support for HTTPS is not GitHub version control, now this problem is the first configuration of SSH, version is 1.7.1. Another one, open it and look at it again.

4. Resolve

(1) HTTPS does not support, but also think of themselves initially set up is SSH, so the above ["origin"] URL line to:

url = ssh://[email protected]/username/study.git

Result Error! What do you mean, the RSA key problem?

Error:we're doing an SSH key audit. reason:unverified due to lack of useplease visit https: // github.com/settings/ssh/ ...  This key so we know its safe. fingerprint: ... fatal:the remote end hung up unexpectedly

(2) Reference [2] open to GitHub, look at the RSA public key problem, the results see themselves sshkeys there is the rightmost button is approve, point a bit on the OK.

(3) Resubmit, binggo!
5. Summary

(1) Domestic website various problems to solve all kinds of pit dad

(2) If Baidu did not search the solution, or a large number of lightning solutions ineffective, go to stack overflow above search

6. Reference

[1]http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed#

[2]http://stackoverflow.com/questions/19722521/error-the-requested-url-returned-error-403-forbidden-while-accessing

Tool-github no git push error under Linux

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.