in reply to Re^2: Running remote commands (Net::SSH2)
in thread Running remote commands (Net::SSH2)

You have to ensure you have recent version of OpenSSH installed on the machine.

What do you get when you run...?

$ ssh -V

Replies are listed 'Best First'.
Re^4: Running remote commands (Net::SSH2)
by wilko (Acolyte) on Dec 23, 2009 at 14:16 UTC
    OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
      3.6.1p2 is way too old.

      Net::OpenSSH requires at least 4.1 and 5.x is recommended