Jenkins git configuration (ssh key generation via Eclipse)

Source: Internet
Author: User

1. Generate SSH keys via eclipse

The Windows-->preferences-->general-->network connections-->ssh2-->key Management of the menu bar:

Click: Generate RSA key Generate key

Comment: Fill in the IP and username of the GIT server in the format: [email protected]
Passphrase: Password for server
Confirm Passphrase: Password for server

Such as:

Click: Save Private Key Saves the file, then generates two files: Id_rsa (key), id_rsa.pub (public key)

2. Add a public key to Git

Click on "Add SSH key" to fill in the key input box with the contents of the Id_rsa.pub (public key) file (paste all past), then submit.

  

3. Configure Git in Jenkins

Go to the Job project configuration page

SOURCE management: Choose Git

Repository URL: Fill in the Project code's warehouse address (SSH)

  

Credentials:

1> Click Add: Configure the key, as

2>credentials drop-down box, select the user name that you just configured

Note: If you have previously configured an error, re-configure after you need to exit Jenkins re-login to enter and then select the new configuration credentials

  

Jenkins git configuration (ssh key generation via Eclipse)

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.