I want to transfer a file between two remote servers (R1 and R2) which can't talk to each other. My machine (let's say L) can talk to both R1 and R2. Is there a way to use my local machine as the intermediate host?
Here's the situation
L ----> R1
L ----> R2
R1 ---x--> R2
I want to send files from R1 to R2 using L.
R1 ----> L ----> R2
I found some resources here and here, but can't figure out the syntax to use local machine as intermediate host.