Skip to content


Faciliate ssh tunnel sharing by announcing ports #807

merged 1 commit into from

2 participants

IPython member

This minor patch provides a connection string to allow the reuse of ssh tunnels created by qtconsole --ssh=...

Using the tunnel connection string I was able to successfully connect another qtconsole, as well as vim-ipython.

IPython member

Sensible. I like it.

@minrk minrk merged commit 80acde0 into ipython:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2011
  1. @ivanov
Showing with 6 additions and 0 deletions.
  1. +6 −0 IPython/frontend/qt/console/
6 IPython/frontend/qt/console/
@@ -360,6 +360,12 @@ def init_ssh(self):
for lp,rp in zip(lports, rports):
tunnel.ssh_tunnel(lp, rp, self.sshserver, remote_ip, self.sshkey, password)
+ self.log.critical("To connect another client to this tunnel, use:")
+ self.log.critical(
+ "--existing --shell={0} --iopub={1} --stdin={2} --hb={3}".format(
+ self.shell_port, self.iopub_port, self.stdin_port,
+ self.hb_port))
def init_kernel_manager(self):
# Don't let Qt or ZMQ swallow KeyboardInterupts.
signal.signal(signal.SIGINT, signal.SIG_DFL)
Something went wrong with that request. Please try again.