title: SSH With Remote Login/Commands
body: <p>How can I use SSH to send multiple commands to a networked system, logging in as root, and providing a password?</p>
  
  <p>I know you can do:</p>
  
  <pre><code>ssh -l &lt;username&gt; target_host
  </code></pre>
  
  <p>to login, but I'm not sure how to provide the password and a command so it all gets executed in one line.  I'm looking to make a script with many one-liner commands to the networked system that can be run as a one-off from another computer.</p>