I'm wanting to scp a file from my local machine to a remote server, using an intermediary tunnel. I've tried a few options already suggested, but none seem to work.
Breakdown: local machine
- The file to copy is called localfile.txt
- ssh connection to intermediary machine already exists, and is being re-used via ControlPath/ControlMaster
intermediary machine
- The identity to use to log in to the destination server is in ~/.ssh/identityfileforremotemachine
remote machine
- The destination will be at /home/username/remotefile.txt
I feel like I'm almost there and missing something