SSH only separates the streams when you don't request a PTY. For example try:
ssh localhost -t 'echo hi 1>&2' 2>test
vs ssh localhost 'echo hi 1>&2' 2>test