aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-11-21 01:25:40 +0000
committerrowanbeentje <rowan@beent.je>2009-11-21 01:25:40 +0000
commitf184235a7f7996e68f4f6548ec8932b289e3d3c1 (patch)
treed42dedb6b6e6ce5c5300ea058c96af3beef2e095 /Source/SPSSHTunnel.m
parent916feeeab23592e38fe1231ffcc3ed2611402725 (diff)
downloadsequelpro-f184235a7f7996e68f4f6548ec8932b289e3d3c1.tar.gz
sequelpro-f184235a7f7996e68f4f6548ec8932b289e3d3c1.tar.bz2
sequelpro-f184235a7f7996e68f4f6548ec8932b289e3d3c1.zip
- Rather than overriding SSH_AUTH_SOCK, allow the OS (or any user-supplied agent) to handle public/private key authentication. This addresses Issue #407.
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r--Source/SPSSHTunnel.m2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m
index 18ec38b3..3d2592e4 100644
--- a/Source/SPSSHTunnel.m
+++ b/Source/SPSSHTunnel.m
@@ -281,8 +281,6 @@
// Set up the environment for the task
authenticationAppPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"SequelProTunnelAssistant"];
taskEnvironment = [[NSMutableDictionary alloc] initWithDictionary:[[NSProcessInfo processInfo] environment]];
- [taskEnvironment removeObjectForKey: @"SSH_AGENT_PID"];
- [taskEnvironment removeObjectForKey: @"SSH_AUTH_SOCK"];
[taskEnvironment setObject:authenticationAppPath forKey:@"SSH_ASKPASS"];
[taskEnvironment setObject:@":0" forKey:@"DISPLAY"];
[taskEnvironment setObject:tunnelConnectionName forKey:@"SP_CONNECTION_NAME"];