Just wondering; is it possible to skip the
some_command | ssh remote 'cat > outputfile'
? It feels like a UUOC.
No, you need something that reads its stdin and writes it to some file.
You could do:
But that would not be more efficient and would only work on systems that have