in reply to Running remote commands (Net::SSH2)

As you are in an Unix box, you could also use Net::OpenSSH.
  • Comment on Re: Running remote commands (Net::SSH2)

Replies are listed 'Best First'.
Re^2: Running remote commands (Net::SSH2)
by wilko (Acolyte) on Dec 23, 2009 at 11:32 UTC
    use Net::OpenSSH; my $ssh = Net::OpenSSH->new('repository'); $ssh->error and die "Can't ssh to $host: " . $ssh->error;
    when running this, I get

    ssh: illegal option -- M

    with $ssh->error revealing..."unable to establish master SSH connection: ssh master exited unexpectedly"

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

      What do you get when you run...?

      $ ssh -V
        OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f