How to use SCP command to transfer files
SCP (secure copy) is a command-line utility that allows you to securely copy files and directories between two locations.
Syntax:
scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file] [-J destination] [-l limit] [-o ssh_option] [-P port] [-S program] source ... target
All options are documented in man scp.
Copy files and directories between two systems
If SSH on the remote host is listening on a non-default port, specify it with -P:
To copy a directory recursively, use -r: