Hi,
I'm trying to setup mina for unit testing. Here is my code.
SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(8002);
sshd.setSubsystemFactories(Arrays.<NamedFactory<Command>>asList(new
SftpSubsystem.Factory()));
sshd.setCommandFactory(new ScpCommandFactory());
sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser"));
List<NamedFactory<UserAuth>> userAuthFactories = new
ArrayList<NamedFactory<UserAuth>>();
userAuthFactories.add(new UserAuthNone.Factory());
sshd.setUserAuthFactories(userAuthFactories);
sshd.setPublickeyAuthenticator(new PublickeyAuthenticator() {
public boolean authenticate(String username, PublicKey key,
ServerSession session) {
return true;
}
});
sshd.start();
I can't connect to the server using WinScp. Should I be able to? I'm running
this on Windows.
Thanks.