From f002e3bb3096c9c9db6b081ab3ae6cf8d453b2e6 Mon Sep 17 00:00:00 2001 From: John Hood Date: Thu, 1 Dec 2016 19:37:05 -0500 Subject: [PATCH] Start ssh with -f instead of -n to avoid ssh hangs. This seems to resolve #833. --- scripts/mosh.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mosh.pl b/scripts/mosh.pl index 25745be..f30c95a 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -346,7 +346,7 @@ die "$0: fork: $!\n" unless ( defined $pid ); if ( $pid == 0 ) { # child open(STDERR, ">&STDOUT") or die; - my @sshopts = ( '-n' ); + my @sshopts = ( '-f' ); if ($ssh_pty) { push @sshopts, '-tt'; }