Learn how to add your SSH keys to your Depfloy account and servers.
SSH (Secure Shell) is a protocol that allows you to access your server through a command-line terminal. SSH keys are used to authenticate your connection to the server over this protocol. Since servers added to Depfloy are configured according to the SSH protocol, you must have an SSH key if you want to connect to the server.
After adding your SSH key to your server, you may SSH into the server without a password:
If you do not have an SSH key and do not know how to create one, this content on the GitHub documentation will be useful for you.
If your provisioning a server for the first time, you should add your SSH keys to your account. You can do this from the SSH Keys page in your dashboard.
As part of the provisioning process, Depfloy will add all your active SSH keys to the depfloy
user. This will allow you to SSH into the server as the depfloy
user without a password.
If you already have a server that you added previously, you can add an SSH key to this server later or remove an existing SSH key.
When you provision a server, Depfloy generates a unique SSH key pair. This key pair allows Depfloy to securely access and manage your server. The public key from this pair is automatically added to the authorized_keys
file for both the root
and depfloy
users on your server.
Depfloy also generates a specific public key for the depfloy
user on your server during provisioning. This key facilitates Git operations, enabling Depfloy to clone your project repositories onto the server. This public key is automatically registered with your selected source control provider (e.g., GitHub, GitLab) to grant necessary permissions. You can find this key at /home/depfloy/.ssh/id_rsa.pub
on your server.
If you experience SSH-related access problems on the source provider’s side, you will need to add Depfloy Public Key to the SSH key settings of your source provider.