@Test
public void testLocalPortForward() throws JSchException {

	//transit host
	SshInfo sshInfo=new SshInfo();
	sshInfo.setHost("192.168.1.1")
			.setPort(22)
			.setPassword("password")
			.setUser("root");
	PortForwardingHandler handler=new PortForwardingHandler(sshInfo);
	//监听10080端口，如果参数=0，则自动分配端口
	int localPort=handler.startLocalPortForwarding(10080, "8.8.8.8",22);
	//do something
	//....
	//stop local port listening
	handler.stopLocalPortForwarding(localPort);
	handler.disconnect();
}