Try:
ssh host 'something > file'
Here's a contrived demonstration of a way to handle redirection, pipes and quotes:
ssh host date -d yesterday \| awk "'{print $1}'" \> 'file" "with\ spaces.out'
The pipe and redirection are escaped rather than being contained in an overall outer set of quotes, reducing the need to escape one level of quotes. The single quotes for the AWK command are protected by the double quotes that surround them. The filename could be protected in the same way, but here I show how the single quotes protect the double quotes and the escape.