diff options
author | John Hood <cgull@glup.org> | 2016-05-08 22:59:30 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2016-05-08 22:59:30 -0400 |
commit | 09bdc7caaee4473b4f1087b1e58058b3ea383655 (patch) | |
tree | 602f30b1a21264b764e729fe70577859903ed37e /scripts | |
parent | eb9897641042a66b7d4f9cbe823619272022d3d1 (diff) |
Enforce SHELL=/bin/sh for more reliable SSH proxy command.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mosh.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl index ac8183d..375906b 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -369,6 +369,9 @@ if ( $pid == 0 ) { # child die "Cannot exec $server: $!\n"; } if ( $use_remote_ip eq 'proxy' ) { + # Non-standard shells and broken shrc files cause the ssh + # proxy to break mysteriously. + $ENV{ 'SHELL' } = '/bin/sh'; my $quoted_proxy_command = shell_quote( $0, "--family=$family" ); push @sshopts, ( '-S', 'none', '-o', "ProxyCommand=$quoted_proxy_command --fake-proxy -- %h %p" ); } |