SSHFactory { public static int openRemotePortToLocal( SshInfo remoteSshInfo, int remotePort, int localPort) throws JSchException { return openRemotePortToLocal(remoteSshInfo, remotePort-1,remotePort, localPort); }  static int openRemotePortToLocal(
			SshInfo remoteSshInfo,
			int remotePort,
			int localPort); synchronized static int openRemotePortToLocal(
			SshInfo remoteSshInfo,
			int remotePort1,
			int remotePort2,
			int localPort); static void stopRemotePortForwarding(int localPort); static int openLocalPortToRemote(
			SshInfo sshInfo,
			int localPort,
			String remoteHost,
			int remotePort); synchronized static void stopLocalPortForwarding(int port); static boolean isLocalPortUsing(int port); static void disConect(int localPort); @Deprecated static void uploadAndRunJarOnRemoteHost(
			SshInfo transitInfo,
			SshInfo remoteInfo,
			String jarPath,
			String remotePath,
			boolean replaceOnExist,
			String startupCmd,
			int execTimeout); static void execRemoteBooeEntity(
			IMessageBuilder mb,
			SshInfo transitInfo,
			SshInfo ssh,
			RemoteBootEntity rbe,
			int execTimeout); static List<PortLink> getPortLinks(); static synchronized boolean testForSSH(
			SshInfo transitInfo,
			SshInfo remoteInfo);  }
@Test public void testRemotePortForward2() throws JSchException, InterruptedException { SshInfo sshInfo=getSshInfo131(); int remoatePort=SSHFactory.openRemotePortToLocal(sshInfo, 9090, 8080); Thread.sleep(1000000); }