What Is The SSH?

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:

ssh depfloy@YOUR_SERVERS_PUBLIC_IP_ADDRESS

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.

Adding Your SSH Key

For New Servers

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.

For Existing Servers

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.

Alternatively, you can add your SSH key directly to your server instead of adding it to your account.

Server Public 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 Public Key

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.