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 [email protected]:directory/TargetFile
For example, to copy your TPS Reports to Joe’s Desktop:
scp “TPS Reports.odw” [email protected]: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 [email protected]:directory/SourceFile TargetFile
scp -r [email protected]:directory/SourceFolder TargetFolder
To copy the pictures to your holiday folder from website, you could do:
” scp -r [email protected]:/home/catbert/holiday “
You just Learned using SCP !!