We all know about using scp to transfer files over a secure shell connection.
It works fine, but there are many cases where alternate modalities of usage are required, for example, when dealing when you want to transfer the output of one program directly to be stored on a remote machine.
Here are some ways of going about doing this.
Let "$PROG" be a program that writes data to the standard output stream.
Then: