sshd.setCommandFactory(new CommandFactory() {
public Command createCommand(String command) {
return new UnknownCommand(command);
}
});
sshd.setPasswordAuthenticator(new BogusPasswordAuthenticator());
sshd.setPublickeyAuthenticator(new BogusPublickeyAuthenticator());
sshd.setServiceFactories(Arrays.asList(
new ServerUserAuthService.Factory() {
@Override
public Service create(Session session) throws IOException {