scp: how to transfer files between two computers that do not communicate directly.

Scenario: you want to transfer files between two computers, the remote1 and remote2 computers that cannot establish a between connection due to firewall restrictions, but you can scp both computers from a third computer.

Solution:

If the third computer can scp both computers remote1 and remote2 then you can use the “-3” parameter which allows you to transfer files using the third computer as a proxy.

short and sweet! ;)

Written by

DevOps engineer, loves Linux, Python, cats and Amiga computers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store