SshServer sshd = SshServer.setUpDefaultServer();
sshd.getProperties().put(SshServer.IDLE_TIMEOUT, "10000");
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()));