Show More
@@ -22,6 +22,7 b' Authors' | |||
|
22 | 22 | from __future__ import print_function |
|
23 | 23 | |
|
24 | 24 | import os,sys, atexit |
|
25 | import signal | |
|
25 | 26 | import socket |
|
26 | 27 | from multiprocessing import Process |
|
27 | 28 | from getpass import getpass, getuser |
@@ -331,9 +332,10 b' def _paramiko_tunnel(lport, rport, server, remoteip, keyfile=None, password=None' | |||
|
331 | 332 | except Exception as e: |
|
332 | 333 | print ('*** Failed to connect to %s:%d: %r' % (server, port, e)) |
|
333 | 334 | sys.exit(1) |
|
334 | ||
|
335 | # print ('Now forwarding port %d to %s:%d ...' % (lport, server, rport)) | |
|
336 | ||
|
335 | ||
|
336 | # Don't let SIGINT kill the tunnel subprocess | |
|
337 | signal.signal(signal.SIGINT, signal.SIG_IGN) | |
|
338 | ||
|
337 | 339 | try: |
|
338 | 340 | forward_tunnel(lport, remoteip, rport, client.get_transport()) |
|
339 | 341 | except KeyboardInterrupt: |
General Comments 0
You need to be logged in to leave comments.
Login now