try {
client = SshClient.setUpDefaultClient();
setupAgent(config.getUser(), client);
client.start();
ClientSession session = connectWithRetries(client, config);
if (!session.authAgent(config.getUser()).await().isSuccess()) {
String password = null;
Console console = System.console();
if (console != null) {
char[] readPassword = console.readPassword("Password: ");
if (readPassword != null) {