if (timeoutInMillis != 0) {
client.setConnectTimeout(DEFAULT_CONNECT_TIMEOUT);
client.setTimeout(timeoutInMillis);
}
client.connect(machine.getPublicDnsName(), machine.getSshPort());
OpenSSHKeyFile key = new OpenSSHKeyFile();
key.init(adminAccess.getPrivateKey(), adminAccess.getPublicKey());
client.authPublickey(adminAccess.getUsername(), key);