Examples of requestRemotePortForwarding()


Examples of ch.ethz.ssh2.Connection.requestRemotePortForwarding()

       * (the above text is based partially on the OpenSSH man page)
       */

      /* You can create as many of them as you want */
     
      conn.requestRemotePortForwarding("127.0.0.1", 8080, "www.ganymed.ethz.ch", 80);

      /* Now, on the ssh server, if you connect to 127.0.0.1:8080, then the connection is forwarded
       * through the secure tunnel to the library, which in turn will forward the connection
       * to www.ganymed.ethz.ch:80. */

 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.