James Moger
2014-03-14 448145827d66cc10326298e60abe53d5b935bbd0
src/main/java/com/gitblit/transport/ssh/SshDaemon.java
@@ -117,7 +117,7 @@
         addr = new InetSocketAddress(bindInterface, port);
      }
      SshKeyAuthenticator publickeyAuthenticator = new SshKeyAuthenticator(
      PublicKeyAuthenticator publickeyAuthenticator = new PublicKeyAuthenticator(
            keyManager, gitblit);
      sshd = SshServer.setUpDefaultServer();
      sshd.setPort(addr.getPort());
@@ -125,7 +125,7 @@
      sshd.setKeyPairProvider(new PEMGeneratorHostKeyProvider(new File(
            gitblit.getBaseFolder(), HOST_KEY_STORE).getPath()));
      sshd.setPublickeyAuthenticator(publickeyAuthenticator);
      sshd.setPasswordAuthenticator(new SshPasswordAuthenticator(gitblit));
      sshd.setPasswordAuthenticator(new UsernamePasswordAuthenticator(gitblit));
      sshd.setSessionFactory(new SshSessionFactory());
      sshd.setFileSystemFactory(new DisabledFilesystemFactory());
      sshd.setTcpipForwardingFilter(new NonForwardingFilter());