Learn how to manage SSH keys on your Depfloy servers.
When provisioning a new server, SSH keys defined in your account are automatically added to the server. This allows you to connect to your server via SSH without using a password:
During server provisioning, an SSH key pair is automatically generated for the server. The private key is stored at ~/.ssh/id_rsa
and the corresponding public key at ~/.ssh/id_rsa.pub
. This provides the necessary authorization for your server to access your source control account.
In addition to account-wide SSH keys, you may want to add specific SSH keys to individual servers rather than deploying them across all servers. To do this:
This approach provides granular control over which keys have access to which servers, enhancing your security posture.