GNU/Linux 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.

Copy local file in your CWD to new directory

scp localfile.txt /home/friend/share/

Copy remote file to you current working directory

scp ./

Copy file from one remote location to another remote location


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

scp -r user@* ./workspace/