What’s on this page:
Introduction
SSH git repositories can be integrated with Jira Cloud via Git Integration for Jira app.
Generating SSH Keys
Initially, the SSH key pair must be generated to proceed. We recommend to generate a 4096-bit key.
Windows
For Windows users, 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.
-
Click Generate.
-
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 note below.
- The user should do the Conversions ➜ Export OpenSSH key menu option in PuTTYgen.
- Add/upload this file to Git Integration for Jira app ➜ SSH keys or when prompted on connecting SSH git repositories in Jira.
You can also use the git bash command line to generate SSH key pair. For detailed information, see Generate SSH via Git bash.
Read on the section in our online documentation, Generating SSH Keys, and follow specific information for the git host and platform that you use.
Linux/MacOS
On Linux and MacOS, this generates an SSH key in RSA format:
ssh-keygen -t rsa -b 4096 -m pem -C "[email protected]"
MacOs often incorrectly creates an OpenSSH format certificate. For more details, see information on this common problem. |
Power Users
The Git Integration for Jira app supports one format for private SSH keys ➜ RSA. To change your SSH key pair to the supported format, use the following syntax on your terminal or bash/powershell:
ssh-keygen -p -P "old_password" -N "new_password" -m pem
Connecting SSH Git Repositories
-
Generate an SSH key pair as stated in the previous section.
-
Obtain the Clone SSH git URL from your git host repository page.
-
On your Jira Cloud dashboard, go to menu Apps ➜ Git Integration: Manage integrations.
-
On the top-right corner click on Add integration.
-
Under Self-hosted group, click on Plain git repository.
-
Paste the SSH git clone URL into the Host URL field.
-
Paste the Private SSH key on the provided box or click Upload Key File to upload a private SSH key file.
-
Enter the Passphrase of the private SSH key, if any. Otherwise, leave it blank.
-
Click on Add Integration to complete this process.
The connected repository is listed in the git configuration page.