SSH Keys
Configure your SSH keys to access your servers or clone Private Repositories.
Dokploy provides a section exclusively for SSH keys, allowing you to manage your SSH keys in a centralized location.
SSH Keys can be used for two purposes:
- Private Repositories: You can use SSH Keys, to access to private repositories, this is only for
Gitprovider in your application or docker compose. - Multi Server: You can use SSH Keys, to access remotely to your servers via SSH.
To create a SSH Key, is a very easy process, just click on Create SSH Key
We offer two SSH Keys Generation types:
- RSA Key: This is the most commonly used key type, and generates a 2048-bit RSA key.
- Ed25519 Key: This is a newer key type that generates a 256-bit Ed25519 key.
You can also create or paste your own SSH Key, you can edit the Private Key and Public Key fields without restrictions,
make sure to use the correct format for the key type you are using.
Once a key is created, only its name and description can be edited. Only owners and admins can view or download the private key.
Encryption at Rest
Private keys are encrypted in the database using ENCRYPTION_KEY, or BETTER_AUTH_SECRET if it isn't set.
If that secret changes or is lost (for example, restoring on a new server without it), encrypted keys stop working and must be created again.
Keys created before this change stay in plaintext and keep working. Create them again to encrypt them.