scp command with key code example
Example 1: scp with ssh key
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME
Example 2: scp command
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2