Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by nysus (Parson)
on Apr 07, 2020 at 15:44 UTC ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-05-21 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?