Use TortoiseGit to add SSH keys to the github account to solve the problem that pull always prompts you to enter the password. tortoisegitgithub

Source: Internet
Author: User

Use TortoiseGit to add SSH keys to the github account to solve the problem that pull always prompts you to enter the password. tortoisegitgithub

Every time you synchronize or upload code to the code library on githun, you need to enter the user name and password each time. In this case, you can set the SSH key to save the trouble. If TortoiseGit is used as a local github management tool, TortoiseGit uses a key with the ppk extension instead of an rsa key generated by ssh-keygen. That is, keys generated using ssh-keygen-C "username@email.com"-t rsa cannot be used in TortoiseGit. However, github-based development requires the use of rsa keys. Therefore, the putty key generator tool of TortoiseGit is required to generate ppk keys that are applicable to both github and TortoiseGit.

Method/step
  1.  

    Open PuttyGen under TortoiseGit and click Generate in the window to Generate a green progress bar. During the generation process, you can move your mouse to increase randomness.

  2.  

    All the generated content is copied after generation, and the window will not be closed.

  3.  

    Log on to github, click the setting chart in the upper-right corner, go to the setting page, select the SSH key in the options on the left, and click Add SSH key. On the displayed page, enter the SSH key name, just enter what you like and paste the copied content into the key and click add key.

  4.  

    Return to the second step, and click Save private key to Save the private key extension for TortoiseGit as. ppk.

  5.  

    Run the Pageant program in the TortoiseGit Start Menu. After the program is started, it will be automatically docked in the taskbar. Double-click the icon to bring 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 1. Close the dialog box.

    After the above configuration, you can use TortoiseGit for push and pull operations. You do not need to enter the password every 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.