title: Automate ssh commands with python
body: <p>So everyday, I need to login to a couple different hosts via ssh and run some maintenance commands there in order for the QA team to be able to test my features.</p>
  
  <p>I want to use a python script to automate such boring tasks. It would be something like:</p>
  
  <ul>
  <li>ssh host1</li>
  <li>deploy stuff</li>
  <li>logout from host1</li>
  <li>ssh host2</li>
  <li>restart stuff</li>
  <li>logout from host2</li>
  <li>ssh host3</li>
  <li>check health on stuff</li>
  <li>logout from host3</li>
  <li>...</li>
  </ul>
  
  <p>It's killing my productivity, and I would like to know if there is something nice, ergonomic and easy to implement that can handle and run commands on ssh sessions programmatically and output a report for me.</p>
  
  <p>Of course I will do the code, I just wanted some suggestions that are not bash scripts (<em>because those are not meant for humans to be read</em>).</p>