in reply to SSH Automation?

You can find a description on how to set automatic authentication via SSH in GRID::Machine::perlparintro.
Once is set you can use GRID::Machine in your script to have a Perl interpreter running under your control in the remote side