How to copy a file from server /root to my PC

  • Posted on October 28, 2014
  • robertthompsonAsked by Rob


How do I copy a file that is living in the root directory of my CentOS droplet server to my PC’s desktop?

Thank you,


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.

You can use an sftp client, or an scp client like WinSCP (which is what I use).

install WinSCP or FileZilla, and select SFTP/SCP (depending on which application you’re using) and create a new profile. For the user, use “root”. They both allow usage of shared keys, so if you’re using shared keys, you can add that key to the program.

From there, log on as usual. they give you a nice, graphical solution.

If you need more details, let me know. I’m trying to keep the answer a little vague, because I’m assuming you have a fair bit of knowledge, but just not with scp.