##// END OF EJS Templates
Merge pull request #1567 from tkf/fix_openssh_tunnel...
Min RK -
r6430:b8d103d2 merge
parent child Browse files
Show More
@@ -208,7 +208,9 b" def openssh_tunnel(lport, rport, server, remoteip='127.0.0.1', keyfile=None, pas"
208 ssh="ssh "
208 ssh="ssh "
209 if keyfile:
209 if keyfile:
210 ssh += "-i " + keyfile
210 ssh += "-i " + keyfile
211 cmd = ssh + " -f -L 127.0.0.1:%i:%s:%i %s sleep %i"%(lport, remoteip, rport, server, timeout)
211 username, server, port = _split_server(server)
212 cmd = "%s -p %s -f -L 127.0.0.1:%i:%s:%i %s@%s sleep %i" % (
213 ssh, port, lport, remoteip, rport, username, server, timeout)
212 tunnel = pexpect.spawn(cmd)
214 tunnel = pexpect.spawn(cmd)
213 failed = False
215 failed = False
214 while True:
216 while True:
General Comments 0
You need to be logged in to leave comments. Login now