File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/test/java/org/embulk/output/sftp Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,14 @@ public void createResources()
110110 sshServer .setSubsystemFactories (Collections .<NamedFactory <Command >>singletonList (new SftpSubsystemFactory ()));
111111 sshServer .setCommandFactory (new ScpCommandFactory ());
112112 sshServer .setKeyPairProvider (new SimpleGeneratorHostKeyProvider ());
113- // sshServer.setPasswordAuthenticator(new PasswordAuthenticator()
114- // {
115- // @Override
116- // public boolean authenticate(final String username, final String password, final ServerSession session)
117- // {
118- // return USERNAME.contentEquals(username) && PASSWORD.contentEquals(password);
119- // }
120- // });
113+ sshServer .setPasswordAuthenticator (new PasswordAuthenticator ()
114+ {
115+ @ Override
116+ public boolean authenticate (final String username , final String password , final ServerSession session )
117+ {
118+ return USERNAME .contentEquals (username ) && PASSWORD .contentEquals (password );
119+ }
120+ });
121121 sshServer .setPublickeyAuthenticator (new PublickeyAuthenticator ()
122122 {
123123 @ Override
You can’t perform that action at this time.
0 commit comments