in reply to Re: SSH2 Recursive conection to Servers ( Cisco Backups routers )
in thread SSH2 Recursive conection to Servers ( Cisco Backups routers )

Hi NetWallah / all , I need connect via SSH2 at one server called "Server_A" .This first step is OK :) In the server_A , I need connect to Server_B via SSH2 ... I canīt connect at the second server in my Perl script Have any connection example of a recursive via SSH2 server to another? Is that the script connects to a first server_A and then jump to a server_B by SSH2. This is possible in PERL? Thanks in advance, Best Regars TELCO
  • Comment on Re^2: SSH2 Recursive conection to Servers ( Cisco Backups routers )

Replies are listed 'Best First'.
Re^3: SSH2 Recursive conection to Servers ( Cisco Backups routers )
by NetWallah (Canon) on Feb 21, 2008 at 19:48 UTC
    Sorry - I have no experience in SSH tunneling, or chaining (or relay), which is what you appear to want to do.

    If you have a functional SSH script that connects to Server_A, you should be able to run the standard "ssh" command at Server_A and connect to Server_B. You will need to pipe the STDIN and STDOUT back to the originating program. See IPC::Open3.

    Also, if you post some code, and explain the errors, perhaps monks here can help you debug the code.

         "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom