title: How to SSH and run commands in EC2 using boto3?
body: <p>I want to be able to ssh into an EC2 instance, and run some shell commands in it, like <a href="https://stackoverflow.com/a/15503965/4993513">this</a>.</p>
  
  <p>How do I do it in boto3?  </p>