> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using SSH protocol with Bitbucket

> You can either utilize SSH Key type credentials, or manually configure the connection on the FlexDeploy Server and any Endpoints where Git commands wi

You can either utilize SSH Key type credentials, or manually configure the connection on the FlexDeploy Server and any Endpoints where Git commands will be executed. For easy configuration it is recommended to use SSH Key credentials.

# SSH Key Credentials

FlexDeploy has built in support for SSH Key credentials. After creating an SSH Key credential with the Property scope, you can select the credential for the GIT Private Key property for the GIT Integration Instance. Note that the GIT URL property will have to start with `ssh://` or `git@` in order for the input to appear. For more information about creating an SSH Key credential, see [Credential Type - SSH Key](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/credentials/credential-types/credential-type-ssh-key.md).

![image-20241009-185807.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590936220.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=269f559040df806dc8c1171082e3fd32)

# Manual Configuration

Reference - [https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html)

> [!NOTE]
>
> Following steps must be done for **FlexDeploy Server** and **Endpoint** where Git commands will be executed.

1. Locate or generate default SSH keys. If no key found generate using "ssh-keygen" command, if you accept defaults id\_rsa and id\_rsa.pub files will be generated in \~/.ssh folder.

   ![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590936229.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=6e3dda07edf8490588032471edfe5ff3)

2. Add SSH public key to Bitbucket account. **You must use id\_rsa.pub for this purpose. Note that Access keys only provide read-only access, so if you need read/write access, then load public keys in SSH Keys section**.

   ![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590936223.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=4da2cbc045ee3d854df827bc175ccc29)

3. Test SSH connection.

   ![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590936226.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=21dc4d45b2e5727a20f0d8e1aff26e1b)

4. Configure SCM Integration instance.

   1. URL Example - [git@bitbucket.org](mailto:git@bitbucket.org):flexagonteam/libraries.git
