Java JSch create channel to access remote server via HTTP(s)
Using the code at http://www.jcraft.com/jsch/examples/StreamForwarding.java.html , I have tried to create code that uses JSch to connect to an SSH server, then use it to connect to a server in the Web and pass HTTP(s) requests to the server, basically using the SSH server as a proxy. Here is what I have: //SSH server and credentials String host = "00.000.000.00"; String user = "login"; String password = "password"; int port = 22; //The host I want to send HTTP requests to - the remote host String remoteHost = "test.com"; int remotePort = 80; Properties config = new Properties(); config.put(