From 91783b66bd56e350873c2c564e5d1f96912653b2 2011-09-20 07:43:56 From: Paul Ivanov Date: 2011-09-20 07:43:56 Subject: [PATCH] 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)