I would like to run
something > file
on a remote system through ssh, but if I run
ssh host something > file
the redirection is executed locally as ssh etc > file
I've tried it with ' or '' or dd or with a pipe | instead, but I can't get it to work. How can this be done?