Dec 16, 2018 B. Set SSH private key in Jenkins. Set private key in Github or any other Git provider. Basically we have to set the Public key in Git Server or Git provider (Github,Bitbucket,Gitlab etc.) Because Github is popular and mostlt use by many people, we are demonstrating how to set SSH RSA Public key for git access. Login to Github account.
Jul 11, 2017 Learn how to use private GitHub/BitBucket repositories with Jenkins. I'll show you how to generate an SSH keypair and how to configure a 'deploy key' on GitHub and an 'access key' on BitBucket.
Create an SSH key. Follow these steps if you don't already have an SSH key for an account. If you do have an SSH key and you want to generate another key, you'll have to use the terminal because you can't use Sourcetree to create a second key. Creating an SSH key looks something like this: From the Sourcetree menu, select Preferences. To access a Git repository Jenkins can use an SSH key. To add the SSH key to the Jenkins server use the following Chef script Store the SSH key in an encrypted data bag called “keys”.