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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like