}
public void connect() throws Exception{
try { // to connect and authenticate
boolean isAuthenticated = false;
sshConnection = new Connection(this.getHost(), this.getPort());
if (this.getProxyHost() != null && this.getProxyHost().length() > 0) {
if (this.getProxyUser() != null && this.getProxyUser().length() > 0) {
sshConnection.setProxyData(new HTTPProxyData(this.getProxyHost(), this.getProxyPort(), this.getProxyUser(), this.getProxyPassword()));
} else {