Hi Lohit,

Yes, you can tunnel almost any TCP protocol through SSH, and no, you
don't need a Perl module.

Here's a sample scenario:

Your daemon is running on server system S on port 5555
The ssh daemon is running on S (required)
Your client is connecting from client system C.

Here's what you do:

Start an ssh session from C to S, redirecting local (C) port 9999 to
remote (S) port 1234:

           ssh -L 9999:S:1234 S

Now whenever your client connects to local port 9999 on system C ssh
will automatically transfer the connection (over its encrypted tunnel)
to port 1234 on system S.  In fact, /anyone/ who connects to port 9999 
on C will be automatically, securely be connected to S:1234.

HTH,

-- Raju

>>>>> "Lohit" == Lohit  <[EMAIL PROTECTED]> writes:

    Lohit> Hi!  I have a daemon (written in PERL) running on a remote
    Lohit> server. I want to connect to that port (where the daemon is
    Lohit> running) through PERL scripts. But I need that to be
    Lohit> tunneled through ssh. Is it possible?

    Lohit> Is there any PERL module available for the same?(not listed
    Lohit> in CPAN).

-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to