title: how to keep an ssh connection from closing?
body: <p>I'm trying to run a command that might take 1+ hours and I've tried adding </p>
  
  <pre><code>while sleep 300; do echo "1"; done
  </code></pre>
  
  <p>so that it doesn't disconnect me for being idle and it worked.</p>
  
  <p>But it still disconnects after sometimes for another reason it says Connection to <code>*.*.*.*</code> closed by remote host.</p>
  
  <p>I guess its just a default time limit or something I don't really know?</p>
  
  <p>Is there a way to increase that time or just make it never disconnects?</p>
  
  <p>If not is there a way to keep that command running even after closing the ssh connection ?</p>