Using scp to copy files from remote to home machine

Secure Copy (scp)

To copy a file from your computer to another computer with scp go to a command-line and type

 scp <file> <username>@<IP address or hostname>:<Destination>  

For Example : Copy your file to your remote computer you need to write

 scp /var/www/test/  

This will copy to the remote computer hostname is username is nikunj and destination path is /var/www/test.


-r  : Recursive

(Recursive) mean copy folders and it's sub-folder to the destination folder.

 scp -r /media/disk/summer_pics/ nikunj@"/var/www/Summer2014/"  

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.