Question

Download files via console, port access has change

I am using Digital ocean + server pilot running wordpress. I had SSL set up through a dev company, but it didn’t work for http/ www redirect. I asked them to go in and fix. They said they couldn’t do their regular fix because server pilot configuration.

Later, I went to access the website and it was down. I then tried to access via SFTP and could not connect. I tried to restart apache but it showed errors. I have the suspicion the port access was somehow changed.

I have backups and DB backups in the file system, but I can’t figure out how to get to them. I can access the server via digital ocean console. I would like to spin up a non-serverpilot droplet and transfer the files and database to the new server. How can I access my files and backups?

  1. Change port back to 22?
  2. Download files from digital ocean console access?

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.

Something like this? Or should I be using my computer IP address? If I am moving files to the new server, don’t I have to log in or something to put a file into to the new server?

scp -oPort=22 backup.tar.gz root@NEW_DROPLET_IP:/var/www/html

Hi

Since you’re able to access the server through the console, you can start an scp or rsync from the console to your new server. Something like this should do:

scp -oPort=SSH_DESTINATION_PORT backup.tar.gz user@DESTINATION_IP_ADDRESS:/home/

Cheers