Permalink
Browse files

Have ssh close stdin and forceallocate pty

Somehow we still need to have a real pty on stdin to ssh so
window-size-thingie works.
  • Loading branch information...
1 parent 884b80b commit 4976effe497472da7939d886df92b3c3f60dee12 @glance- committed Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/mosh
View
2 scripts/mosh
@@ -244,7 +244,7 @@ if ( $pid == 0 ) { # child
}
my $quoted_self = shell_quote( $0 );
- exec "$ssh " . shell_quote( '-S', 'none', '-o', "ProxyCommand=$quoted_self --fake-proxy -- %h %p", '-t', $userhost, '--', "$server " . shell_quote( @server ) );
+ exec "$ssh " . shell_quote( '-S', 'none', '-o', "ProxyCommand=$quoted_self --fake-proxy -- %h %p", '-n', '-tt', $userhost, '--', "$server " . shell_quote( @server ) );
die "Cannot exec ssh: $!\n";
} else { # parent
my ( $ip, $port, $key );

0 comments on commit 4976eff

Please sign in to comment.