Coolify uses SSH to connect to your server and deploy your application, even if you are using only the localhost server - where Coolify is running on.
To validate your configuration, make sure the followings are set on your server.
SSH Enabled
Make sure SSH is enabled and you can connect to your server with SSH from your local machine with root user.
Root Login
Make sure that the following parameters are set in the /etc/ssh/sshd_config file:
PermitRootLogin is set to yes, without-password, or prohibit-password.
PubkeyAuthentication is set to yes.
SSH Key set on the Server
Make sure an SSH key is added to the ~/.ssh/authorized_keys file.
If you installed Coolify with the automated script, you don’t need to do anything else.
If you installed Coolify manually, you need to add an SSH key to the ~/.ssh/authorized_keys file.
SSH Key set in Coolify
Add the private key to Coolify at Keys & Tokens menu -> Private Keys and set this new key in the localhost server settings.