SSH Access to GIT Repository
SSH Access to a Git Repository
SSH authentication allows applications to be deployed securely from private Git repositories without storing a repository password in the platform. The setup requires a matching SSH key pair: the private key is added to the platform account, while the public key is registered with the Git provider.
Overview
The platform can deploy applications from public or private Git repositories. For private repositories, SSH key authentication provides a secure way to clone and update application sources from services such as GitHub, GitLab, Bitbucket or a self-hosted Git server.
Do not protect the deployment key with a passphrase
The private key used by the platform for automated Git access must not contain passphrase protection. Passphrase-protected keys cannot be used for unattended repository authentication.
Requirements
git@host:owner/repository.git.Generate an SSH Key Pair
Create a new SSH key pair consisting of a private key and a public key. The private key remains confidential and is uploaded to the platform account. The public key is added to the Git provider.
Open a terminal
Use a local terminal, PowerShell, Git Bash or another command-line tool with OpenSSH available.
Generate the key
Create a dedicated key pair for Git deployment. Use an empty passphrase when prompted.
Locate both files
The generated private key has no file extension, while the public key normally ends with .pub.
Use a dedicated deployment key
Create a separate SSH key pair for platform-to-repository access instead of reusing your personal workstation key.
Add the Private Key to the Platform
Open account settings
Sign in to the platform dashboard and click Settings in the upper toolbar.
Open Private Keys
In the user settings, navigate to SSH Keys and select Private Keys.
Add the private key
Click Add Private Key, paste the complete private-key content into the key field and enter a clear name, such as git-deployment-key.
Save the key
Click Add. The key should appear in the private-key list after successful validation.

Keep the private key confidential
Never add the private key to the Git provider, a public repository, a support ticket or shared documentation. Only the corresponding public key should be distributed.
Add the Public Key to the Git Provider
Copy the full contents of the public-key file and register it with the account or repository that hosts your source code. For self-hosted Git servers, add the public key to the authorized-key list for the Git account.
GitHub Configuration
Open SSH key settings
Sign in to GitHub, open the account settings and select SSH and GPG keys.
Create a new SSH key
Click New SSH key, provide a recognizable title and paste the complete public key into the key field.
Confirm the addition
Click Add SSH key and complete any account-confirmation step requested by GitHub.
Copy the SSH repository URL
Open the required repository, select the SSH clone option and copy the repository address.

GitLab Configuration
Open SSH Keys
Sign in to GitLab, open your profile preferences and navigate to SSH Keys.
Add the public key
Paste the public key, enter a descriptive title and optionally specify an expiration date when required by your organization.
Save the key
Click Add key and confirm that the new entry appears in the SSH-key list.
Copy the SSH clone URL
Open the project, select the SSH clone option and copy the displayed repository address.

Bitbucket Configuration
Open personal SSH key settings
Sign in to Bitbucket, open your personal settings and navigate to the SSH-key management section.
Add a new key
Click Add key, enter a label and paste the full public-key content.
Save the key
Confirm the addition and verify that the key is displayed in the account key list.
Copy the SSH clone URL
Open the required repository, choose the SSH clone option and copy the repository URL.

Deploy the Project Through SSH
Open the deployment manager
In the platform dashboard, open the deployment or project section for the required application server.
Add a Git repository
Create a new repository entry and provide the project name, SSH repository URL and required branch.
Enable authentication
Select Use Authentication, choose SSH Key as the access type and select the private key that was added to the platform account.
Save the repository
Click Add or Save to store the project configuration.
Deploy the application
Select the repository, branch and deployment target, then start the deployment. The platform will clone the project through the secure SSH connection.

Use the SSH URL, not the HTTPS URL
The repository address normally begins with git@ or ssh://. An HTTPS repository URL will not use the SSH key selected in the deployment configuration.
Expected Result
The platform can securely authenticate with the private Git repository by using the selected SSH private key. The application source can be cloned, deployed and updated without entering a Git account password.
Important Notes
- The private key must not be protected with a passphrase.
- Add the private key only to the platform account and the public key only to the Git provider.
- Use a dedicated key pair for automated deployments.
- Copy the SSH clone URL rather than the HTTPS URL.
- The Git account or key must have permission to read the required repository and branch.
- Deleting a private key from the platform key manager may not automatically remove it from projects that already use it.
- Remove unused public keys from the Git provider and rotate deployment keys periodically.
