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

Remote SSH server is OpenSSH_2.5.2p2, SSH protocols 1.5/2.0

That's quite old (~2001) and probably the cause of your problems... the only workaround besides upgrading the server would be to open a new connection for every command.

Anyway, you (or the corresponding party) should upgrade the server software even if only for security reasons!

Replies are listed 'Best First'.
Re^4: Net::OpenSSH multiple commands
by Anonymous Monk on Jan 17, 2012 at 18:32 UTC

    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!

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