Skip to content

Commit

Permalink
Have ssh close stdin and forceallocate pty
Browse files Browse the repository at this point in the history
Somehow we still need to have a real pty on stdin to ssh so
window-size-thingie works.
  • Loading branch information
glance- authored and keithw committed Jan 18, 2013
1 parent 077b664 commit e0dfe36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mosh
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit e0dfe36

Please sign in to comment.