Skip to content

Commit

Permalink
Merge pull request ipython#4720 from minrk/ssh-no-mux
Browse files Browse the repository at this point in the history
never use ssh multiplexer in tunnels

`ssh -f` is [broken in OpenSSH](https://bugzilla.mindrot.org/show_bug.cgi?id=1948) when a ControlMaster multiplexed connection is used.

`-S none` disables the multiplexed connection.

closes ipython#4717
  • Loading branch information
minrk committed Dec 29, 2013
2 parents ac3a2c8 + cd24575 commit d80f9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/external/ssh/tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def openssh_tunnel(lport, rport, server, remoteip='127.0.0.1', keyfile=None, pas
server, port = server.split(':')
ssh += " -p %s" % port

cmd = "%s -f -L 127.0.0.1:%i:%s:%i %s sleep %i" % (
cmd = "%s -f -S none -L 127.0.0.1:%i:%s:%i %s sleep %i" % (
ssh, lport, remoteip, rport, server, timeout)
tunnel = pexpect.spawn(cmd)
failed = False
Expand Down

0 comments on commit d80f9cf

Please sign in to comment.