How to download file from digital ocean droplet ?

March 4, 2018 5.9k views
DigitalOcean Ubuntu

i want to download file from my digital ocean droplet to my local server

1 Answer

one method you can use is scp

scp username@droplet_ip:/path/to/file /path/to/destination

update the items in red to match your situation.

  • It worked for me. Thanks

  • from where should i execute this cmd

    • You can execute this command from either the destination, source, or even a different machine.

      From destination:
      scp username@droplet_ip:/path/to/file /path/to/destination

      From source:
      scp /path/to/file username@destination_host:/path/to/destination

      From elsewhere:
      scp username@source_ip:/path/to/file username@destination:/path/to/destination

Have another answer? Share your knowledge.