Question

How to uplaod file from computer with console?

I want to upload a large file so I want to do so from the droplet’s console. The file is on my compouter. How do I do that?

Show comments

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.

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
September 19, 2016
Accepted Answer

Running a command on your local computer to upload files to your server is pretty easy on macOS or Linux where you can use scp:

scp -r /path/to/my/files root@:0.0.0.0:/path/on/my/server

or rsync

rsync -avz /path/to/my/files root@:0.0.0.0:/path/on/my/server

While there are versions of rsync and scp/sftp available for windows they are not installed by default and getting started with a GUI client like Filezilla might be an easier way to go.

Hi…the answer by ryanpq helped me but has typos. There should be no colon after root@. Here is the correct syntax. rsync -avz /path/to/my/files root@0.0.0.0:/path/on/my/server

alexdo
Site Moderator
Site Moderator badge
December 7, 2020

Hello, all

The web console is intended to access your droplet in a case of emergency in order to sort out the issue. I will highly recommend to use a ssh-client in order to access and manage your droplet.

You can also check our docs on How to Connect to Droplets with SSH:

https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/

There are two options at the bottom of the doc: Connect with OpenSSH and Connect with PuTTY

As for the files upload you can simply upload them using sFTP with FileZilla or using rsync or scp in your ssh client.

You can find more information in the already provided article:

https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps

Hope that this helps! Regards, Alex

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

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.