I don't see out-of-order issues when using interactive SSH, and SSH still funnels stdout and stderr over a single TCP connection (keeping them separate at the client's side)
Seems to me that you could just look at how SSH does it ?
Seems to me that you could just look at how SSH does it ?
ssh localhost -t 'echo hi 1>&2' 2>test
vs ssh localhost 'echo hi 1>&2' 2>test