Changes between Version 15 and Version 16 of Csle2022/Agenda/Ansible


Ignore:
Timestamp:
Nov 19, 2022, 3:42:03 AM (2 years ago)
Author:
dushmantha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/Ansible

    v15 v16  
    131131}}}
    132132
    133 {{{
    134 apt install python3.10
    135 }}}
    136 
    137133'''Setup Passwordless SSH'''
    138134
    139 ''In each node''
    140 
    141 Login as normal user.
    142 
    143 {{{
    144 ssh user > ssh-keygen -t rsa
     135Login to control node as normal user.
     136
     137{{{
     138ssh-keygen -t rsa
    145139}}}
    146140
    147141Continue by entering the prompts.
    148142
    149 ''In control node''
    150 
    151 {{{
    152 cat /home/ubuntu/.ssh/id_rsa.pub
    153 }}}
    154 
    155 Copy the ssh keys (the output of the above command) generated on the master node, paste and save it in the authorized_keys file on both managed nodes.
    156 
    157 {{{
    158 nano /home/node/.ssh/authorized_keys
     143{{{
     144cat /home/docker/.ssh/id_rsa.pub
     145}}}
     146
     147Copy the ssh keys (the output of the above command) generated on the control node, paste and save it in the authorized_keys file on both managed nodes.
     148
     149{{{
     150nano /home/docker/.ssh/authorized_keys
     151}}}
     152
     153Verify passwordless ssh from control node to other nodes.
     154
     155
     156{{{
     157ssh docker@<managed node internal network IP address>
    159158}}}
    160159