deleteFile(tempPrivateKeyFile);
}
private void setupSSHServer() throws IOException {
sshd = SshServer.setUpDefaultServer();
sshd.setFileSystemFactory(new NativeFileSystemFactory());
sshd.setPort(port);
sshd.setShellFactory(new ProcessShellFactory());
sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(tempPrivateKeyFile));
sshd.setCommandFactory(new ScpCommandFactory());
sshd.setCommandFactory(new ScpCommandFactory(new CommandFactory() {