Download a File from a Linux Remote Server Using Ssh

Download a File from a Linux Remote Server Using Ssh

I have backup all my website files to a zip folder from cpanel. Now I want to download this zip folder to my local drive. I searched on internet and found command line code scp but its not working for me.

scp :file.zip D:/

I am currently in public_html directory using SSH.

2

4 Answers

Check this tutorial, it's very well explained

scp command line to securely copy files over ssh, between Linux, Mac or Windows

Examples:

scp *.txt :/home/user/ That is going to copy all files with .txt extension to the folder /home/user in the remote.server.com host

scp -r miguel@10.1.2.2:/home/user/ user@10.1.2.3:/home/user/

It seems like you are using windows, so you should have a look at winscp (), which is a graphical interface for scp.

If you want to use a command-line from windows then you could give pscp a try from the putty toolkit.

Try using a SFTP client such as

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.