// socket.connect(remoteSocketAddress);
// } catch (IOException e) {
// throw new OpsException("Error connecting tunneled SSH socket", e);
// }
SshPortForward forwardLocalPort = null;
Connection conn = null;
Statement statement = null;
ResultSet rs = null;
try {
forwardLocalPort = target.forwardLocalPort(remoteSocketAddress);
InetSocketAddress localSocketAddress = forwardLocalPort.getLocalSocketAddress();
// QueryServerInstanceModel template = Injection.getInstance(QueryServerInstanceModel.class);
// CloudataQueryServer model = template.getModel();
String jdbcUrl = "jdbc:postgresql://" + InetAddresses.toAddrString(localSocketAddress.getAddress()) + ":"