sshConnection.connect(connectTimeout);
if (!sshConnection.isConnected()) {
throw new IllegalStateException("Connection completed, but could not get connection details");
}
} else {
IServerKeyVerifier myServerKeyVerifier = getServerKeyVerifier();
myServerKeyVerifier.verifyPooled(sshConnection.getServerKeyVerifier());
}
if (!sshConnection.isAuthenticationComplete()) {
// Authenticate
boolean isAuthenticated = sshConnection.authenticateWithPublicKey(getUser(), getKeyPair(),