OpenSSH
Coolify uses SSH to connect to your server and deploy your applications. This is true even when using the localhost
server where Coolify is running.
Configuration Steps
These are the steps to configure OpenSSH for Coolify.
-
Install and Enable SSH
Choose the commands for your Linux distribution:
Ubuntu/Debian
CentOS/RHEL
Arch Linux
Alpine Linux
SLES/openSUSE
-
Configure SSH Settings
Edit
/etc/ssh/sshd_config
to ensure these settings:You can also set
PermitRootLogin
toyes
,without-password
, orprohibit-password
(all of these are supported).Make sure to restart the SSH service after changing the configuration.
-
Set Up SSH Keys
If you used the automated Coolify installation script, this step is already done.
For manual installation:
-
Configure Coolify
- Go to
Keys & Tokens
menu - Navigate to
Private Keys
section - Add the private key
- Set this key in your localhost server settings
- Go to
Troubleshooting
If you’re having connection issues:
- Verify SSH service is running.
- Check that the right SSH key is set in Coolify.
- Check permissions on ~/.ssh directory and files.
- Ensure the SSH key has no passphrase and no 2FA enabled.
- Confirm you are using the right user.