Results 1 to 2 of 2
- 06-24-2012, 09:27 PM #1Member
- Join Date
- Apr 2012
- Rep Power
How to get a SSH tunnel for a socket
Hi, I developed an app that connects to an IRC room using a socket (irc.freenode.net, 6667), but apparently that port is blocked in my college and it's too late to propose a new project since it's due the next week, and I already finished the program.
Someone told me that I can "bypass" the connection to the socket using an SSH tunnel, I found a SSH proxy that could help me, but I have no idea about how to implement that on my program, I tried to google it but it gives me a lot of information that just confuses me since I don't have a lot of knowledge in that area...
I tried using some classes that came with MindTerm applet, that was as easy as this:
SSHSocketFactory fact = new SSHSocketFactory("ssh.freessh.biz", 22, new SSHPasswordAuthenticator("freessh", "7QO5dkmg<"));
socket = fact.createSocket("irc.freenode.net", 6667);
The problem is that those libraries don't support SSHv2 and it gives me an error saying that version of SSH isn't supported...
I tried a newer version but it's completly different and I have no idea how to do that same process since they have no docummentation....
Can you guys help me with another library, tip, or something that can help me get through this problem?
Last edited by danoc93; 06-24-2012 at 09:31 PM.
- 06-25-2012, 01:31 AM #2
- By vishrut_n_shah in forum NetworkingReplies: 0Last Post: 11-04-2011, 09:32 AM
- By Salt7900 in forum Java 2DReplies: 0Last Post: 05-23-2011, 04:30 AM
- By newbiejava in forum New To JavaReplies: 1Last Post: 07-02-2010, 01:18 PM
- By Syahrul in forum New To JavaReplies: 0Last Post: 12-20-2009, 01:31 PM
- By firstname.lastname@example.org in forum NetworkingReplies: 3Last Post: 04-17-2009, 07:02 PM