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 username@destination_host:destination_folder
This command will copy the file from local to the remote server location.
scp user@remote_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 your_username@remotehost:destnation_folder