04.CREATE ADMIN ACCESS

CONTROLLER NODE

//generate ssh keys and exchange with managed nodes
root@oco:~$ su - ansible-admin
root@oco:~$ ssh-keygen -t rsa -b 4096
 ...
 * accept defaults by pressing <enter>
 
root@oco:~$ ls /home/ansible-admin/.ssh
 id_rsa.pub id_rsa

//exchange ansible admin user public key with managed nodes
root@controllerNode:~$ cat id_rsa.pub
 ssh-rsa AAAAB3NzaC1...

 * copy the key for pasting into the managed nodes

MANAGED NODES

LINUX

WINDOWS

Last updated