aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2013-06-02 17:00:21 (EDT)
committerJohn Arthorne2013-06-02 20:24:11 (EDT)
commit8748f09b5fb7afd4d3eb53c1e06e18ef48b904d8 (patch)
treea9cbaf2a2ed3a61c88e991ab5baca1e725908893
parent96e41880f6a52f2f50930d127cf8c51397ef55f3 (diff)
downloadorg.eclipse.orion.server-8748f09b5fb7afd4d3eb53c1e06e18ef48b904d8.zip
org.eclipse.orion.server-8748f09b5fb7afd4d3eb53c1e06e18ef48b904d8.tar.gz
org.eclipse.orion.server-8748f09b5fb7afd4d3eb53c1e06e18ef48b904d8.tar.bz2
Bug 406560 - Allow non-default port for git transports over sshv20130603-0024
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/jsch/SessionHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/jsch/SessionHandler.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/jsch/SessionHandler.java
index d0f71c0..35e1374 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/jsch/SessionHandler.java
+++ b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/jsch/SessionHandler.java
@@ -37,7 +37,7 @@ public class SessionHandler {
jSch = new JSch();
JSchUtil.knownHosts(jSch, knownHosts);
JSchUtil.identity(jSch, privateKey, publicKey, passphrase);
- this.session = jSch.getSession(user, host);
+ this.session = jSch.getSession(user, host, port);
//we don't prompt for password on the server so we never want to retry on authorization failure
this.session.setConfig("MaxAuthTries", "1"); //$NON-NLS-1$ //$NON-NLS-2$
}