El 24/08/12 13:28, Sasikanth Eda escribió:
Hi All,

I am working on an automation scenario, where the steps mentioned below are
to be performed;

1. Script has to run on client machine.

2. Using the Perl script on client machine, we need to login to remote
machine-1 using ssh protocol.

3. From remote machine-1, the script should login to other remote machine-2
using ssh protocol.

4. From remote machine-2, the script should login to other remote machine-3
using ssh protocol and execute a command, collect the output.

Here limitations is we cannot directly contact remote machine-3 from client
and our script should not create any copies of code on any of the remote
machine used in the scenario.

I am a Perl beginner and explored Net::OpenSSH module, but came to know
that, using this we can connect only to client -to- remote machine-1.

Any thoughts/example code to handle this scenario.

There is Net::OpenSSH::Gateway that does exactly that.

I never released it to CPAN because I was not happy with its design and planed to revamp in completely, but anyway it is fully functional.

You can get it from GitHub: https://github.com/salva/p5-Net-OpenSSH-Gateway



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to