Disable ControlMaster on SSH connection (fixes #24 github issue)

This commit is contained in:
Keith Winstein
2012-02-25 12:14:58 -05:00
parent a2b293c027
commit 6c91dcf820
+1 -1
View File
@@ -130,7 +130,7 @@ if ( $pid == 0 ) { # child
close $pty_slave;
my $s = q{sh -c 'exec "$@" "`set -- $SSH_CONNECTION; echo $3`"' -- } . $server;
exec 'ssh', '-o', "ProxyCommand=$0 --fake-proxy -- %h %p", '-t', $userhost, '--', $s;
exec 'ssh', '-S', 'none', '-o', "ProxyCommand=$0 --fake-proxy -- %h %p", '-t', $userhost, '--', $s;
die "Cannot exec ssh: $!\n";
} else { # server
my ( $ip, $port, $key );