title: Amazon EC2 ssh timeout due inactivity
body: <p>I am able to issue commands to my EC2 instances via SSH and these commands logs answers which I'm supposed to keep watching for a long time. The bad thing is that SSH command is closed after some time due to my inactivity and I'm no longer able to see what's going on with my instances.</p>
  <p>How can I disable/increase timeout in Amazon Linux machines?</p>
  <p>The error looks like this:</p>
  <pre><code>Read from remote host ec2-50-17-48-222.compute-1.amazonaws.com: Connection reset by peer
  </code></pre>