Header

SSH public key authentication errors

In DeployHQ, a number of issues related to authenticating a server using SSH can result in the following message when attempting to add a server to your project :

"We couldn't access this server using the credentials you have provided. Have you uploaded the appropriate public key onto the server?"

If you are seeing this message, there are a number of things to check:

1) You have added the key from the following place within your project:

https://your-deploy-domain.deployhq.com/projects/project_name/public_key

2) That the key has been added to ~/.ssh/authorized_keys on your server, for your deployment user.

3) Permissions of that directory and keys file are set as follows:

$ chmod 700 ~/.ssh/
$ chmod 600 ~/.ssh/authorized_keys