From f6b8cb80e77f159b4dd1d691f24be35e7a63fd7e Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 30 Sep 2009 22:55:49 +0000 Subject: - Add ControlMaster compatibility to SSH tunnels - credit to Igor Sutton. This addresses Issue #396 --- Source/SPSSHTunnel.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m index 6c5be81c..843acb89 100644 --- a/Source/SPSSHTunnel.m +++ b/Source/SPSSHTunnel.m @@ -253,6 +253,7 @@ [taskArguments addObject:@"-N"]; // Tunnel only [taskArguments addObject:@"-v"]; // Verbose mode for messages // [taskArguments addObject:@"-C"]; // TODO: compression? + [taskArguments addObject:@"-M"]; // Places the ssh client into 'master' mode for connection sharing [taskArguments addObject:@"-o ExitOnForwardFailure=yes"]; [taskArguments addObject:[NSString stringWithFormat:@"-o ConnectTimeout=%i", connectionTimeout]]; [taskArguments addObject:@"-o NumberOfPasswordPrompts=3"]; -- cgit v1.2.3