title: how to redirect output of echo over ssh to a file
body: <p>I'm trying to redirect content of a variable to a file through ssh. like:</p>
  
  <pre><code>ssh $MachineIP  echo $CM_Config &gt; $mName/CM_CONFIG
  </code></pre>
  
  <p>where <code>$CM_Config</code> is a local variable in my host containing multiple line, and <code>$mName/CM_CONFIG</code> is located in <code>$MachineIP</code> 
  how should I redirect local variable to the remote file assuming my ssh configurations are correct.
  Thanks in advance</p>