//=============================================================
if (authenticationInfo instanceof SSHPasswordAuthentication) {
String password = ((SSHPasswordAuthentication) authenticationInfo).
getPassword(serverInfo.getUserName(), serverInfo.getHost());
session.setUserInfo(new SSHAPIUIKeyboardInteractive(password));
// TODO figure out why we need to set password to session
session.setPassword(password);
} else if (authenticationInfo instanceof SSHPublicKeyFileAuthentication) {