Windows accesses git server through public key

Source: Internet
Author: User

Reviewboard Windows client, Gerrit Windows client, Jenkins Windows Server all need this method.

1. Install the GIT bash and tortoisegit programs first.

2. Run git bash first and run it on the bash terminal.

Ssh-keygen.exe

Do not enter a password,

The public key and private key file are generated. Remember the name.

3. Rename the public key file, add it to the GIT server according to the last string of the file content in my article (5. Add a new user.

Http://blog.csdn.net/sheismylife/article/details/7204345

4. Run the puttygen program in tortoisegit, import the private key file generated by 2, and save it as a private key file with the suffix PPK.

5. Run the pageant program in tortoisegit to import the PPK private key file.

Now, use tortoisgit to clone.

Like git@10.112.18.175: gitosis-admin.git

The advantage of this method is that you do not need to enter the user name and password. On Windows server, you can directly access git server through scripts at regular intervals.

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.