cat c ; echo ; ssh user@host 'Q=xir sh' < c echo $Q Q=xir: Command not found.