how to run a scp command form local to remote code example
Example: scp local to remote
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory