boolean isAuthenticated = false;
this.setSshConnection(new Connection(this.host, this.port));
if (proxyHost != null && this.proxyHost.length() > 0) {
if (this.proxyUser != null && this.proxyUser.length() > 0) {
this.getSshConnection().setProxyData(new HTTPProxyData(this.proxyHost, this.proxyPort));
}
else {
this.getSshConnection().setProxyData(
new HTTPProxyData(this.proxyHost, this.proxyPort, this.proxyUser, SOSCommandline.getExternalPassword(this.proxyPassword, logger)));
}
}
this.getSshConnection().connect();