title: Run Multiple Commands on Same SSH Session in Bash?
body: <p>I would like to run several commands on one SSH session. For example, my script right now has something like the following:</p>
  
  <pre><code>ssh "machine A" do-thing-1
  ssh "machine B" do-thing-2
  ssh "machine A" do-thing-3
  </code></pre>
  
  <p>Having to SSH to A again in the third line is wasting a lot of time. How do I execute this without having to SSH again? Is this possible?</p>