From 80acde0c0c7991449e8e137b2b9b02bc8e0368e8 2011-09-21 06:00:22 From: Min RK Date: 2011-09-21 06:00:22 Subject: [PATCH] Merge pull request #807 from ivanov/share-tunnel Faciliate ssh tunnel sharing by announcing ports --- diff --git a/IPython/frontend/qt/console/qtconsoleapp.py b/IPython/frontend/qt/console/qtconsoleapp.py index 1f490c7..7508893 100644 --- a/IPython/frontend/qt/console/qtconsoleapp.py +++ b/IPython/frontend/qt/console/qtconsoleapp.py @@ -360,6 +360,12 @@ class IPythonQtConsoleApp(BaseIPythonApplication): 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)