This reverts commit f002e3bb. That commit appears to have created a race between ssh restoring termios state and mosh-client initializing termios. Probably fixes #844.