Deploying PHP apps to DigitalOcean with

I’ve never used any deployment tools/services before and thought I’d give a go after seeing this article:

I’m stuck trying to connect dploy to my droplet - I’ve tried a few times but keep getting the dploy error message “Warning: can’t connect to a server”

I signed up to deploy, the options in the process were not quite the same as the ones shown in the article (e.g. there is no “Upload static files” or “Pre-launch commands” settings but there is “Upload configuration files”, “Run commands after new version becomes active” and “Run commands after new version is uploaded”) but it looks fairly similar.

I created a Digital Ocean personal access token and added it to dploy.

I added the dployssh key to ~/.ssh/authorized_keys in my droplet and rebooted. I think the permissions are ok (I could be wrong here…). I followed the instructions for permisisons although I have a feeling I had already set them before.

Github is linked ok.

t’s not critical, I’m just trying to figure out how to do it. Any advice appreciated, thanks!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


Tools like this use SSH to connect to the droplet, and this is likely where the error is. If you added the public key to the authorized_keys folder did you test SSH manually?

I would suggest trying to log in with SSH from your local PC with the same key pair. If you cannot get the public key (The service is no longer free so I cannot test it directly I apologize) then make your own and try connecting.

You can also log in with SSH as root or whatever sudo user you made in the secure steps, and check the /var/log/auth.log for errors. This will show any errors the deploybot user has while connecting and why the server is rejecting you.