in reply to Re^3: Net::OpenSSH multiple commands
in thread Net::OpenSSH multiple commands

I know it's an old thread but...

I'm having the exact same issue, what exactly do you mean with "to open a new conection"? Do you mean using the new method once more?

Thanks in advance!

Replies are listed 'Best First'.
Re^5: Net::OpenSSH multiple commands
by salva (Canon) on Jan 17, 2012 at 18:35 UTC
    For every command you want to run on the remote host, create a new Net::OpenSSH object.