title: Running script commands after SSH
body: <p>I need to write a script that will SSH into a remote host, then run certain commands on that remote host, then exit.  If I just do</p>
  
  <pre><code>ssh $host
  
  #some command
  </code></pre>
  
  <p>the script will SSH in, wait until I manually exit, then run the commands.  </p>
  
  <p>How do I run those commands on the remote host?</p>