| options | Description |
|---|---|
| -i | identity file: Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh. |
| -P | port: Specifies the port to connect on the remote host. |
| -p | Preserves modification times, access times, and modes from the original file. |
| -q | Disables the progress meter. |
| -r | Recursively copy entire directories. |
| -s | Name of program to use for the encrypted connection. The program must understand ssh(1) options. |
More command info:
man scp
scp test.txt [email protected]:/home/ucup
scp [email protected]:/home/jayesh/test1.txt
scp -i ~/.ssh/the-key.pem file.txt [email protected]:/home/ucup
Source: https://www.geeksforgeeks.org/scp-command-in-linux-with-examples/