linux – SCP – Secure Copy

scp command is used to securely copy a file to or from a remote destination. If the file is in current working directly only filename is sufficient else full path is required which included the remote hostname e.g. remote_user@some_server.org:/path/to/file

Copy local file in your CWD to new directory

scp localfile.txt /home/friend/share/

Copy remote file to you current working directory

scp rocky@arena51.net:/home/rocky/game/data.txt ./

Copy file from one remote location to another remote location

scp mars@universe.org:/beacon/light/bitmap.conf jupiter@universe.org:/beacon/night/

To copy directory and sub-directories use ‘-r’ recursive option to scp

scp -r user@192.168.0.4:~/project/* ./workspace/

if you want to reproduce, please indicate the source:
linux – SCP – Secure Copy - CodeDay