Question

Pull file from remote windows machine

I have a digital ocean droplet, I also have my local windows machine. Currently, I transfer files using psftp and a Batch file that i schedule using windows task scheduler to copy files FROM my windows machine INTO my digital Ocean droplet.

However, instead of copying from my local windows machine, I want to set up the same process on the Digital Ocean droplet to connect to my windows machine, and copy files from a certain directory. That is, using some secure protocol I want to know the code that will allow me to do the following:

  1. Connect to my windows machine
  2. Navigate to a certain folder location
  3. Pull all the files in that folder INTO my DO droplet.
  4. For this process to happen automatically on scheduled basis.

I was hoping this was an easy task

Thanks in advance


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.

Hi @Puma,

I’ll recommend using pscp. This will allow you to copy files from Ubuntu to Windows machines and the other way around. Pscp should be installed on both machines and it can work like that

pscp -i /path/to/id_rsa.pub C:\Users\Admin\Desktop\test.txt \
user@XXX.XXX.XXX.XXX:/home/

where -i is for your public key location and XXX.XXX.XXX.XXX is for your actual IP address.