I need a Perl script that is basically a 'hello world' example of connecting to a remote site via SSH, uploading a file from the local disk to the remove server, downloading a file from the remote server to the local disk, and running a command on the remote server.
Just a script that demonstrates connecting to a remote server via SSH, then uploading a file from local to remote, then downloading a file from remote to local, then running a command in the SSH console on the remote server, and then finally disconnecting.
I suspect that once you have installed the right Perl packages or modules or whatever you call them, the whole thing can be done in just a few lines of code.
Also, if I have to install any extra Perl modules in order to make it work, just tell me how to install those (preferably the exact commands I need to type). I'm running Perl 5.8.0 on Red Hat Linux release 9 (Shrike).
The Perl script only needs to run on Perl 5.8.0 on Red Hat Linux release 9 (Shrike). But if I need to install additional Perl modules or packages to make it work, please tell me how to do that too.