Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Faciliate ssh tunnel sharing by announcing ports #807

Merged
merged 1 commit into from

2 participants

@ivanov
Owner

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.

@minrk
Owner

Sensible. I like it.

@minrk minrk merged commit 80acde0 into from
@ellisonbg ellisonbg referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
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
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 IPython/frontend/qt/console/qtconsoleapp.py
View
6 IPython/frontend/qt/console/qtconsoleapp.py
@@ -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.