SSH keys are required in order to provide secure connection with the remote git host. The Git Integration for Jira app uses one set of keys for accessing all configured repositories.
Follow this guide if you are one of the users who are limited to or wanted to use SSH to securely connect to your git repositories.
Before connecting repositories via SSH, users are required to generate SSH keys for use with the remote git host (public key) and for Git Integration app in Jira (private key).
Generated SSH keys always come in pair. (Example:
For establishing safety connection with SSH, upload a public key to the SSH server and set the private key to the SSH client.
In this case, the SSH server is the Git server and the SSH client is the Jira server. Therefore:
Git server — public key
Jira server — private key
- must not be created using the OpenSSH format.
- must be the private key.
- must use the supported certificate format: RSA.
- must use the supported storage format: OpenSSL PEM.
For more information, see known issue SSH key format is invalid.
For Windows, we recommend to use PuTTY and use PuTTYgen to generate public and private SSH keys.
Launch PuTTYgen and refer to the above image for the rest of the steps on this section.
Set Type of key to generate to RSA.
Set Number of bits in a generated key to 4096.
Follow screen instructions such as moving your mouse pointer on random locations on the blank area of the PuTTYgen dialog. Do this until the progress bar completely fills up and the SSH key pair is generated.
Entering a Passphrase for the generated key is optional but will ensure a more secure connection.
Save your generated public and private key to a file by clicking the respective options.
Copy the generated key. This is the public key that you will be using on the SSH configuration page of your git host.
For the private key, see the notes below.
Read on the article, Generating SSH Keys, and follow specific information for the git host and platform that you use.
On Linux and MacOS, this generates an SSH key in RSA format:
ssh-keygen -t rsa -b 4096 -m pem -C "email@example.com"
MacOS often incorrectly creates an OpenSSH format certificate. For more details, see information on this common problem.
See next topic — Generating SSH keys ».