How can I ssh inside a Perl script?

Posted by Salman on Stack Overflow See other posts from Stack Overflow or by Salman
Published on 2010-05-17T11:48:50Z Indexed on 2010/05/18 0:00 UTC
Read the original article Hit count: 232

Filed under:
|

I want to SSH to a server and execute a simple command like "id" and get the output of it and store it to a file on my primary server. I do not privileges to install Net::SSH which would make my task very easy. Please provide me a solution for this. I tried using backticks but I am not able to store the output on the machine from which my script runs.

© Stack Overflow or respective owner

Related posts about ssh

Related posts about perl