Running Commands Remotely with PERL Net::OpenSSH

Running remote command across many servers can be automated using this PERL script. Using the Net::OpenSSH module we connect to two servers and run commands on both servers.

Additionally you can find my video courses on Pluralsight: and take time to see my own site

5 thoughts on “Running Commands Remotely with PERL Net::OpenSSH

  1. thank you very much, so helpful.
    but i have a question, i have a script to copy a config file using sshpass scp and also i am using the key to connect to remote server and scheduled it. but as you know, as long as servers key is not in the authorized_keys i will get an error message and force me to once connect using ssh in order to authorize the key. but how can i handle it with the script? because i have 100 of the remote server.

Leave a Reply

Your email address will not be published. Required fields are marked *