scp from within the remote to local 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