Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Where is documenation for defining servers for use by Rex?

by bliako (Monsignor)
on Apr 08, 2020 at 08:02 UTC ( #11115212=note: print w/replies, xml ) Need Help??


in reply to Where is documenation for defining servers for use by Rex?

from the documentation of Rex::Commands :

key_auth If you want to use pubkey authentication, then you need to call key_au +th. user "bob"; private_key "/home/bob/.ssh/id_rsa"; # passphrase-less key public_key "/home/bob/.ssh/id_rsa.pub"; key_auth;

perhaps you need this then?:

group "servers", "server_big" => { user => 'my_user', private_key => ' +/home/user/key.pem', key_auth => 1 };

or something to that effect.

bw, bliako

Replies are listed 'Best First'.
Re^2: Where is documenation for defining servers for use by Rex?
by nysus (Parson) on Apr 08, 2020 at 12:31 UTC

    Thanks. Doesn't work, though. I think this is a bug.

    $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

      Heh

      SYNOPSIS

      desc "Task description"; task "taskname", sub { ... }; task "taskname", "server1", ..., "server20", sub { ... }; group "group" => "server1", "server2", ...; user "user"; password "password"; environment live => sub { user "root"; password "foobar"; pass_auth; group frontend => "www01", "www02"; };

      annotated SYNOPSIS

      desc "Task description"; task "taskname", sub { ... }; task "taskname", "server1", ..., "server20", sub { ... }; group "group" => "server1", "server2", ...; user("user"); password("password"); environment live => sub { user("root"); password("foobar"); pass_auth(); group frontend => "www01", "www02"; };
      Please take the time to actually read and understand the docs, pay close attention to their site, and where they hang out offering help

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2022-06-27 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?