Results 1 to 2 of 2
  1. #1
    danoc93 is offline Member
    Join Date
    Apr 2012
    Posts
    37
    Rep Power
    0

    Default 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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How to get a SSH tunnel for a socket

    Moved from Advanced Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Socket Programming ERROR : Socket not connected
    By vishrut_n_shah in forum Networking
    Replies: 0
    Last Post: 11-04-2011, 09:32 AM
  2. Fast Tunnel
    By Salt7900 in forum Java 2D
    Replies: 0
    Last Post: 05-23-2011, 04:30 AM
  3. Replies: 1
    Last Post: 07-02-2010, 01:18 PM
  4. Socket
    By Syahrul in forum New To Java
    Replies: 0
    Last Post: 12-20-2009, 01:31 PM
  5. append response to the request from Socket and write to another socket
    By vaibhav_singh_vs@yahoo.co in forum Networking
    Replies: 3
    Last Post: 04-17-2009, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •