boolean isAuthenticated = false;
String message= "";
connection = new Connection(host, port);
connection.connect(new HostVerifier(knownHostsDatabase));
if(SSHUtil.checkString(keyFile) == null && SSHUtil.checkString(password) == null) {
message += "No key or password specified - trying default keys \n";
if (logger.isLoggable(Level.FINE)) {
logger.fine("keyfile and password are null. Will try to authenticate with default key file if available");
}