http://qs321.pair.com?node_id=11115166


in reply to Connecting to remote server with Rex using .pem file

Solved

Put this in the Rexfile:

user 'my_user_name'; private_key '/home/my_user_name/keyfile.pem'; key_auth;

Run like so from command line: rex -H 111.222.222.123 <task_name>

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks