Resolving git push bypass Ssh-key authentication requires entering user information

Source: Internet
Author: User

After the build, I copied the copy to the public key of the coding, and then modified the test code, but when the code is submitted to jump out please enter the user name and password, this is puzzled. There are two ways of git push, ssh and HTTPS. And the HTTPS way is different, specifically, is the URL information is different, the actual verification mechanism is also different. When this key is established, the use of SSH does not really need to be verified again, and HTTPS will need to enter a password each time. SSH is more secure and does not require a lot of hassle to enter long passwords.

Open and look at the. Git/config in the repo directory, and sure enough, find my URL is https mode.

[remote  origin" ]< Span class= "indent" >  URL = https:// Coding.net/xxx/xxxxx.git    fetch = +refs/heads/*:refs/remotes/origin/*  Puttykeyfile = X:\\TEST\\XXXX.PPK  

The default clone down time is selected as HTTPS, resulting in the need to enter a user name and password each time. Modify the URL in the configuration file:

"origin"] url = git@coding.    Net:xxx/xxxxx.git  fetch = +refs/heads/*: refs/remotes/origin/*  X  :\\TEST\\XXXX.PPK

Resolving git push bypass Ssh-key authentication requires entering user information

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.