[SCP to copy files: local to remote] default port is 22, a non-default ports need to specify the port parameter with -P
// copy does not change the file name
scp <full path to the local file> <remote machine login account> @ <remote machine's address>: <target file directory> [-P port]
// copy and re-specify the file name
scp <full path to the local file> <remote machine login account> @ <address of the remote machine>: <full path to the target file> [-P port]
// copy directory
scp -r <local directory full path> <remote machine login account> @ <remote machine's address>: <target directory full path> [-P port]
[SCP to copy files: remote] to the local default port is 22, a non-default ports need to specify the port parameter with -P
// copy and does not modify the file name
scp <remote machine user name> @ <remote machine address>: <absolute path to the remote machine file> <copy the files are stored in the local directory> [-P port]
// copy and re-specify the file name
scp <remote machine user name> @ <remote machine address>: <absolute path to the remote machine file> <file copy is stored local path> [-P port]
// copy directory
scp -r <remote machine user name> @ <remote machine address>: <remote machine directory> <full path to the local copy directory> [-P port]