http://www.perlmonks.org?node_id=999287

davidsnt has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks

I need some help in building a multilevel ssh in perl. I am using Net::SSH::Perl

My requirement is that I have to connect to ServerA and from ServerA connect to ServerB and from ServerB connect to ServerC and execute few set of commands and collect the results.

I dont have direct access to ServerB or ServerC only from ServerA I can move on to ServerB and then on to ServerC. I have access to ServerA. How can I achieve it.

Thanks