summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/transport/ssh/SshDaemon.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-06-15 12:56:23 -0400
committerJames Moger <james.moger@gitblit.com>2015-06-15 12:56:23 -0400
commitb3aabb94c9935e61ba16bb5ab506c123ae29fbf3 (patch)
tree2e1f1b470a3e7c9a8ae5faed48a0e1574fca547c /src/main/java/com/gitblit/transport/ssh/SshDaemon.java
parent18231200d33b62d2d96286b9bbd84476df5d9189 (diff)
downloadgitblit-b3aabb94c9935e61ba16bb5ab506c123ae29fbf3.tar.gz
gitblit-b3aabb94c9935e61ba16bb5ab506c123ae29fbf3.zip
Renamed ssh.Display(Host|Port) to ssh.Advertised(Host|Port)
Diffstat (limited to 'src/main/java/com/gitblit/transport/ssh/SshDaemon.java')
-rw-r--r--src/main/java/com/gitblit/transport/ssh/SshDaemon.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java
index 4756d967..68a2e901 100644
--- a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java
+++ b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java
@@ -35,8 +35,8 @@ import org.apache.sshd.common.io.mina.MinaServiceFactoryFactory;
import org.apache.sshd.common.io.nio2.Nio2ServiceFactoryFactory;
import org.apache.sshd.common.keyprovider.FileKeyPairProvider;
import org.apache.sshd.common.util.SecurityUtils;
-import org.apache.sshd.server.auth.CachingPublicKeyAuthenticator;
import org.apache.sshd.server.UserAuth;
+import org.apache.sshd.server.auth.CachingPublicKeyAuthenticator;
import org.apache.sshd.server.auth.UserAuthKeyboardInteractive;
import org.apache.sshd.server.auth.UserAuthPassword;
import org.apache.sshd.server.auth.UserAuthPublicKey;
@@ -130,7 +130,7 @@ public class SshDaemon {
} else {
addr = new InetSocketAddress(bindInterface, port);
}
-
+
//Will do GSS ?
GSSAuthenticator gssAuthenticator = null;
if(settings.getBoolean(Keys.git.sshWithKrb5, false)) {
@@ -144,9 +144,9 @@ public class SshDaemon {
"");
if(! servicePrincipalName.isEmpty()) {
gssAuthenticator.setServicePrincipalName(servicePrincipalName);
- }
+ }
}
-
+
//Sort the authenticators for sshd
List<NamedFactory<UserAuth>> userAuthFactories = new ArrayList<>();
String sshAuthenticatorsOrderString = settings.getString(Keys.git.sshAuthenticatorsOrder,
@@ -156,7 +156,7 @@ public class SshDaemon {
switch (authenticatorName) {
case "gssapi-with-mic":
if(gssAuthenticator != null) {
- userAuthFactories.add(new UserAuthGSS.Factory());
+ userAuthFactories.add(new UserAuthGSS.Factory());
}
break;
case "publickey":
@@ -172,7 +172,7 @@ public class SshDaemon {
log.error("Unknown ssh authenticator: '{}'", authenticatorName);
}
}
-
+
// Create the SSH server
sshd = SshServer.setUpDefaultServer();
sshd.setPort(addr.getPort());
@@ -203,8 +203,8 @@ public class SshDaemon {
IStoredSettings settings = gitblit.getSettings();
int port = sshd.getPort();
- int displayPort = settings.getInteger(Keys.git.sshDisplayPort, port);
- String displayServername = settings.getString(Keys.git.sshDisplayHost, "");
+ int displayPort = settings.getInteger(Keys.git.sshAdvertisedPort, port);
+ String displayServername = settings.getString(Keys.git.sshAdvertisedHost, "");
if(displayServername.isEmpty()) {
displayServername = servername;
}