try {
isConnected = false;
this.setSshConnection(new Connection(objCO.getHost().Value(), objCO.getPort().value()));
if (objCO.getProxy_host().IsNotEmpty()) {
HTTPProxyData objProxy = null;
if (objCO.getProxy_user().IsEmpty()) {
objProxy = new HTTPProxyData(objCO.getProxy_host().Value(), objCO.getProxy_port().value());
}
else {
objProxy = new HTTPProxyData(objCO.getProxy_host().Value(), objCO.getProxy_port().value(), objCO.getProxy_user().Value(),
objCO.getProxy_password().Value());
}
this.getSshConnection().setProxyData(objProxy);
}
this.getSshConnection().connect();