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
-
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.
-
Generates all the content after the build, and the window remains closed.
-
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.
-
Go back to the second step of the window, click the Save private Key button saved as a. PPK for Tortoisegit.
-
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.
-
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.