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

For every command you want to run on the remote host, create a new Net::OpenSSH object.