markhuge

Securely pipe output to another host

Published by Mark on

I was in a weird situation where I had to export some data from a device attached to a non-encrypted (but otherwise trusted) system, to an encrypted system that was incompatible with the device. I wanted to transfer this data without an intermediary writes on unencrypted disks.

The first thing that came to mind actually worked really well:

someCommand | ssh user@host ">filename.foo"