Linux – Download a file from a linux remote server using ssh

linuxscpssh

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 myusername@remotehost.edu:file.zip D:/

I am currently in public_html directory using SSH.

Best Answer

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 user@remote.server.com:/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/

Related Question