Pull always prompts for password question What is the situation?

Source: Internet
Author: User

Each time you synchronize or upload code to the code base on the Githun, you need to enter the user name and password every time, then we set up SSH key can save the trouble. If you use Tortoisegit as the GitHub Local administration tool, Tortoisegit uses the secret key with the extension PPK instead of the RSA key generated by Ssh-keygen. That is, using the Ssh-keygen-c "username@email.com"-t RSA generated by the key tortoisegit is not available. For GitHub-based development, the RSA key must be used, so the Tortoisegit Putty Key Generator tool is used to generate a PPK key that applies both to GitHub and to Tortoisegit.

Method/Step

    1. Open Tortoisegit under Puttygen, Click on the Generate button in the open window, there will be a green progress bar, wait for the generation, the generation process can be more than a hover mouse to increase randomness.

    2. Generates all the content after the build, and the window remains closed.

    3. Log on to GitHub, click on the settings chart in the upper right, go to the Settings page and select SSH key in the left option after clicking on Add SSH key to fill in the interface that appears SSH The name of the key, just fill in your favorite can, and then paste the copy of the content into the key and then click on the Add key can be.

    4. Go back to the second step of the window, click the Save private Key button saved as a. PPK for Tortoisegit.

    5. Run the pageant program in the Tortoisegit Start menu, the program will automatically dock in the taskbar when it starts, double-click the icon to pop up the Key management list.

    6. Click Add Key in the pop-up Key management list to add the private key (. ppk) file saved in step 4th to close the dialog box.

      With the above configuration, you can use tortoisegit for push, pull operations, without having to enter a password each time.

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.