Permalink
Browse files

Faciliate ssh tunnel sharing by announcing ports

  • Loading branch information...
1 parent 391deab commit 91783b66bd56e350873c2c564e5d1f96912653b2 @ivanov committed Sep 20, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 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)

0 comments on commit 91783b6

Please sign in to comment.