SCP command is used to copy files between servers in secure way. The basic syntax of the SCP command is as follows:
scp source_file_name [email protected]_host:destination_folder
This command will copy the file from local to the remote server location.
scp [email protected]_host:/source_file_name /destination_folder
The above command will copy the file from remote server to local.
You can use the scp command with port no also. For that use the syntax,
scp -P portnumber filename [email protected]:destnation_folder