A sublime text 2 plugin allows you can compile on remote machine with ssh.