2 Replies Latest reply: Jan 30, 2007 4:58 PM by 807599 RSS

    Proxy telnet?

    807599
      Hi: I have two servers hostA and hostB. hostA is my web server. I wantmy users who can reach the webserver on hostA, run an applet that connects to hostB using SSH and telnets to a remote host (somewhat like a telnet proxy). I am a newbie at java. So wondering if this can be done and if someone can provide me some pointers.

      Thanks
      Ray
        • 1. Re: Proxy telnet?
          807599
          http://javassh.org/space/start

          This library ought to give you a good headstart.
          • 2. Re: Proxy telnet?
            807599
            Hi: Thanks for your response. I have already tried that and had issues.

            Here's what I have done so far. I downloaded and started mrelayd on hostB and see it's listening on port 31415. I downloaded the jta26.jar and created the following html file on hostA
            ======
            <html>
            <body>
            <applet CODEBASE="."
            ARCHIVE="jta26.jar"
            CODE="de.mud.jta.Applet"
            WIDTH=590 HEIGHT=360>
            <param name="config" value="applet.conf">
            </applet>
            </body>
            </html>
            =======
            when I access telnet.html http://hostA/telnet.html, I get a window saying: Sorry, Could not connect to: 23.... Looks like it is trying to connect to the localhost

            Couple of questions
            1. I am guessing I have to copy default.conf. Where do I copy it to and as what?
            2. how do I configure the telnet.html to go to hostA port 31415?
            3. How do I pass an argument telling what the target host is I am trying to telnet to?

            TIA
            Ray