Question

How to set automation (CI-CD)

scp file to server.

2025/03/10 09:38:58 error copy file to dest: ***, error message: dial tcp ***:22: connect: connection timed out
drone-scp error:  error copy file to dest: ***, error message: dial tcp ***:22: connect: connection timed out

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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 11, 2025

Hey @nashurgessa,

That error usually means your CI server can’t reach your Droplet over SSH (port 22). A few quick things to check:

  • Double-check the IP address — make sure it’s correct.
  • Make sure SSH is running on the Droplet: sudo systemctl status ssh
  • Check that port 22 is open — if you’re using DigitalOcean Cloud Firewalls or ufw, allow SSH access.
  • If you’re using a CI/CD provider like Drone, make sure your Droplet allows connections from their IPs — some providers use dynamic IP ranges, so you may need to allow a wider range.

Let me know which CI you’re using and I’ll help you tweak the config.

- Bobby

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.