SCP also known as Secure copy protocol. SCP is known for securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.
If you want to copy files to a remote machine using SSH hear how you can do this –
scp sourcefilename user@host:directory/TargetFile
For example, to copy your TPS Reports to Joe’s Desktop:
scp “TPS Reports.odw” joe@laptop:Desktop/
This will copy TPS Reports.odw to /home/joe/Desktop, because SCP uses your home folder as the destination unless the destination folder begins with a ‘/’.
Copying file from remote machine to your pc –
scp user@host:directory/SourceFile TargetFile
scp -r user@host:directory/SourceFolder TargetFolder
To copy the pictures to your holiday folder from website, you could do:
” scp -r firstname.lastname@example.org:/home/catbert/holiday “
You just Learned using SCP !!