Skip to main content
Version: 1.26

Authenticating with an SSH Key
ScaleEnterpriseSelf-Hosted

Okteto generates an SSH key the first time it boots. This key is the identity used by Okteto when cloning repositories while executing a git deployment pipeline. You can use this SSH key to give Okteto permission to clone private repositories.

Get your Public Key

The public SSH is available on the Settings section on the Admin -> General page. Click on the Show SSH Key button to reveal the value. This will only be displayed for users with the Admin role.

show SSH key

Add the Public Key to your Source Code Provider

Once you have the public key, follow your source code provider's instructions on how to add the SSH key to your account. We recommend that you create a dedicated bot account for Okteto.

Deploy a Private Repository

To deploy a private repository, use the SSH url of your git repository. This applies both when using the Deploy dialog in the Okteto UI and the okteto pipeline deploy command from your terminal.

add a private repository