in reply to SSH Tunneling

$ ssh -NL 60023:router:23 you@box2 ... log in ... $ telnet localhost 60023 ... do your telnet stuff ...
For details, see the ssh manual page. But what has this to do with Perl?

Replies are listed 'Best First'.
Re^2: SSH Tunneling
by xomo (Initiate) on Apr 29, 2011 at 15:56 UTC
    The perl script will run on the Box-1 and will interact with router. so for the user of Box-1 ..the hop box-2 will be transparent. Thanks
      Exactly.