host.getSSH().setPasswords(dsaKey, rsaKey, pwd);
}
if (rootPane == null) {
host.connect(null, progressIndicator, index);
} else {
host.connect(new SSHGui(rootPane, host, null), progressIndicator, index);
}
host.getSSH().waitForConnection();
if (first) {
/* wait till it's connected and try the others with the
* same password/key. */