Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Connecting to remote server with Rex using .pem file

by nysus (Parson)
on Apr 07, 2020 at 15:44 UTC ( [id://11115166]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found