SCP (Secure copy protocol) is a means based on the Secure Shell (SSH) protocol that you can use to securely transfer files between a local host and a remote host or between two remote hosts.
Typically, a syntax of scp program is like the syntax of cp (copy):
Copying file to host:
scp sourcefile user@host:directory/targetfile
Copying file from host:
scp user@host:directory/sourcefile targetfile
scp -r user@host:directory/sourcefolder targetfolder
Note that if the remote host uses a port other than the default of 22 (as some of our servers do), it can be specified in the command.
For example, copying a file from host:
scp -P 2222 user@host:directory/sourcefile targetfile
See more examples at:
https://linux.die.net/man/1/scp
http://www.hypexr.org/linux_scp_help.php
https://haydenjames.io/linux-securely-copy-files-using-scp/
https://www.garron.me/en/articles/scp.html
https://kb.iu.edu/d/agye
For more deeper info, use:
$ man scp or $ info scp