Git Integration for Jira Cloud Documentation

Working with SSH keys

SSH keys provide a secure connection with the remote git host. Git Integration for Jira uses one set of keys for accessing all configured repositories.

Follow this guide if you want to use SSH to securely connect to your git repositories.

Features such as branch and pull/merge request creation are only available for repositories/git hosts connected via the Full feature integration (formerly Auto-connect integration).

 

On this page:

 


 

Getting Started

Before connecting repositories via SSH, generate SSH keys for use with the remote git host (public key) and for Git Integration for Jira (private key).

Generated SSH keys always come in pairs. (Example: id_rsa.pub and id_rsa)

To establish a secure connection with SSH, upload a public key to the SSH server and set the private key on the SSH client.

In this case, the SSH server is the Git server and the SSH client is the Jira server:

  • Git server — public key
  • Jira server — private key
Git Integration for Jira SSH key requirements:

  • Must not use 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.

 


 

Generating SSH Keys on Windows

For Windows, we recommend using PuTTY and PuTTYgen to generate public and private SSH keys.

  1. Launch PuTTYgen and refer to the above image for the rest of the steps.

  2. Set Type of key to generate to RSA.

  3. Set Number of bits in a generated key to 4096.

  4. Click Generate.

  5. Follow screen instructions such as moving your mouse pointer to random locations on the blank area of the PuTTYgen dialog. Continue until the progress bar fills completely and the SSH key pair is generated.

  6. Entering a Passphrase for the generated key is optional but ensures a more secure connection.

  7. Save your generated public and private key to a file by clicking the respective options.

  8. Copy the generated key. This is the public key you will use on the SSH configuration page of your git host.

  9. For the private key, see the notes below.

PuTTY creates a private key in its own “.ppk” format. To convert it to “.pem”, select ConversionsExport OpenSSH key in PuTTYgen. Add/upload this file to Git Integration for Jira ➜ SSH keys or when prompted while connecting SSH git repositories in Jira via the Connect wizard.

You can also use the git bash command line to generate an SSH key pair. For detailed information, see Generate SSH via Git bash.

 

Generating SSH Keys on Linux/MacOS

On Linux and MacOS, run the following command to generate 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.

 


 

Git Host Specific SSH Key Instructions

Configure and generate SSH keys for the following git hosting systems by following the reference links in each sub-section:

Beanstalk

Bitbucket

GitHub

Check for existing SSH keys before generating new keys.

See GitHub supported platforms for generating SSH keys in this article.

GitLab

GitLab CE/EE

Follow the GitLab references above for GitLab CE/EE. Then verify that your GitLab server has the following SSH settings:

  • Enabled Git access protocols — Both SSH and HTTP(s)
  • RSA SSH keys — Are allowed

Other SSH key formats may be supported by Git Integration for Jira, but use RSA format for your SSH git connections.

VSTS, TFS, Azure DevOps, and Azure Repos

SSH support starts with TFS 2013 and later versions.

Gerrit

Git Integration for Jira supports Gerrit web linking.

GitBlit

Gitolite

Git-scm

 


 

Connecting SSH Git Repositories

SSH git repositories can be integrated with Jira Cloud via Git Integration for Jira.

We recommend generating a 4096-bit key using the instructions above.

To connect an SSH repository:

  1. On your Jira dashboard menu, go to AppsGit Integration: Manage integrations.

  2. On the Manage integrations page, click Add integration.

  3. On the following screen, in the Quick start integration section:

    • Click the SSH tab.
    • Enter the git clone URL in the provided box.
  4. Click Connect to complete this process.

    • If prompted, enter login credentials for this repository integration. If 2FA is enabled for this account, enter the personal access token (PAT) as the password instead.
    • Enable/disable SSL Verify for this repository integration.

The repository is now connected for use with Jira.

 


 

Adding a Public SSH Key to Your Git Server

Add a public SSH key to your remote git host to prepare its repositories for connection with Git Integration for Jira.

To set up SSH for your remote git host:

  1. Log in to your remote git host service.

  2. Go to the SSH configuration page, if supported.

    See examples: Adding SSH key in GitHub or Adding SSH key in GitLab.

  3. Paste the public key in the provided box (GitLab) or upload the public key file and complete the setup (GitHub).

  4. Verify your SSH connection to the git host server.

 


 

Updating a Private SSH Key

If a new SSH key pair is generated for the configured repository, follow these steps:

  1. On the Manage integrations page list, click Actions ➜ Edit integration for the SSH-connected git repository.


  2. Update the Private SSH key field (highlighted below) by pasting the updated value or uploading the Private SSH key file.


    If a passphrase is present, enter it in the provided box.

  3. Click Save to save the settings.

 

Last updated: December 2025

Have feedback about this article? Did we miss something? Let us know!
On this page