in reply to Re^8: Advice on running perl program over ssh
in thread Advice on running perl program over ssh

I am confused, on the main post on this thread you said you run everything locally, and that you can install modules there but now you say you have never done that. Is that right?

Which OS/distribution are you running on your machine? Net::OpenSSH is available as a native package for several Linux distributions (Debian, Ubuntu, Fedora, etc.). Otherwise you can install it running the CPAN client as root:

# cpan Net::OpenSSH
In case you can't be root, there are several other approaches, for instance, using local::lib.

Replies are listed 'Best First'.
Re^10: Advice on running perl program over ssh
by Amblikai (Scribe) on Jul 16, 2014 at 09:12 UTC

    Yeah sorry for the confusion. Up until now i had to ask our sysadmin to install modules for me. They sometimes take ages to do it and i hadn't ever tried installing them locally until now. I'd still prefer to run my scripts on my local machine though, rather than try to install modules on the remote machine/LSF.

      Just to be sure you are understanding me: you don't need to install Net::OpenSSH on the remote machine, just on your local machine where you run your scripts.

      The module just allows to run ssh in a friendly and perlish way, and invoke several remote commands over one single SSH connection and takes care of a lots of ugly details.