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

Posted October 28, 2014 5.1k views


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,


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.

Submit an Answer
2 answers

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.