diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-26 10:49:39 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-26 10:49:39 -0400 |
commit | 7a273c783e31a9e87b702af8ac865df1d2d57c58 (patch) | |
tree | f1e5f8853ceb2fe910f1697ba94ad03f6499a038 /src/main/java/com/gitblit/transport/ssh/SshDaemon.java | |
parent | f6196b803b7351da29f5d24958abbedf0df41a05 (diff) | |
download | gitblit-7a273c783e31a9e87b702af8ac865df1d2d57c58.tar.gz gitblit-7a273c783e31a9e87b702af8ac865df1d2d57c58.zip |
Renamed class to avoid confusion with FileKeyManager
Diffstat (limited to 'src/main/java/com/gitblit/transport/ssh/SshDaemon.java')
-rw-r--r-- | src/main/java/com/gitblit/transport/ssh/SshDaemon.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java index 2740e915..d0b7490e 100644 --- a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java +++ b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java @@ -96,8 +96,8 @@ public class SshDaemon { hostKeyPairProvider.setFiles(new String [] { rsaKeyStore.getPath(), dsaKeyStore.getPath(), dsaKeyStore.getPath() }); // Client public key authenticator - CachingPublicKeyAuthenticator keyAuthenticator = - new CachingPublicKeyAuthenticator(new FileBasedPubKeyAuth(gitblit.getPublicKeyManager(), gitblit)); + SshKeyAuthenticator keyAuthenticator = + new SshKeyAuthenticator(gitblit.getPublicKeyManager(), gitblit); // Configure the preferred SSHD backend String sshBackendStr = settings.getString(Keys.git.sshBackend, @@ -123,7 +123,7 @@ public class SshDaemon { sshd.setPort(addr.getPort()); sshd.setHost(addr.getHostName()); sshd.setKeyPairProvider(hostKeyPairProvider); - sshd.setPublickeyAuthenticator(keyAuthenticator); + sshd.setPublickeyAuthenticator(new CachingPublicKeyAuthenticator(keyAuthenticator)); sshd.setPasswordAuthenticator(new UsernamePasswordAuthenticator(gitblit)); sshd.setSessionFactory(new SshServerSessionFactory()); sshd.setFileSystemFactory(new DisabledFilesystemFactory()); |