From e0dfe363a0fefab15aa461c4fce00af3b35d8adb Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 18 Jan 2013 00:19:14 +0100 Subject: [PATCH] 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. --- scripts/mosh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mosh b/scripts/mosh index c9cb26b..7d51782 100755 --- a/scripts/mosh +++ b/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 );