Configuring an SSH/SFTP server

Enter the hostname of your server, then enter the port your server is listening on (if you haven't changed this you can leave this field blank and DeployHQ will use the default port 22).

SSH/SFTP settings

Enter your username and if you're using password authentication, your password.

Alternatively, if you'd rather use SSH keys to authenticate check the use SSH key rather than password for authentication box. You can find the appropriate public key to add to the appropriate authorized_keys file on your server by clicking here underneath the Use SSH key checkbox.

SSH Key authentication

If you choose to use your project's public key to authenticate, you can copy it from the server configuration page, then login to your server as the same user that you're configuring in DeployHQ. The easiest way to do this is via a terminal.

Once you've logged in, you can run the following commands:

cd ~/.ssh/
nano authorized_keys

Then, paste the key into the file as a new line, with no trailing spaces. Then, press Ctrl+X, then y, then hit enter to save your key.

Proudly powered by Katapult. Running on 100% renewable energy.