title: Exiting ssh -tt session
body: <p>I am executing a script on a remote ssh host as follows:</p>
  
  <p><code>ssh -tt $USER@somehost 'bash -s' &lt; ./myscript.sh</code></p>
  
  <p>Notice the pseudo tty <code>-tt</code> switch.</p>
  
  <p>My problem is that after the script has finished running the ssh session is not ending.  Typing <code>exit</code> doesn't do anything either.  How do I make it exit?</p>