sshd.setPort(8001);
sshd.setKeyPairProvider(Utils.createTestHostKeyProvider());
sshd.setSubsystemFactories(Arrays.<NamedFactory<Command>>asList(new SftpSubsystem.Factory()));
sshd.setShellFactory(new EchoShellFactory());
// sshd.setCommandFactory(new ScpCommandFactory());
sshd.setCommandFactory(new CommandFactory() {
public Command createCommand(String command) {
if (command.startsWith("git-")) {
return new GitCommand(command.substring("git-".length()));
} else {
return new UnknownCommand(command);