Professional Documents
Culture Documents
Ansible SSH Setting 15jan
Ansible SSH Setting 15jan
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
https://docs.fedoraproject.org/en-US/epel/
step-3:- create user ansible and set same password on all the machines
edit below
ssh-keygen -- enter-enter-enter
[ansible@ip-172-31-39-240 .ssh]$
[ansible@ip-172-31-39-240 .ssh]$
[ansible@ip-172-31-39-240 .ssh]$ ssh-copy-id ansible@172.31.3.94
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:
"/home/ansible/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out
any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted
now it is to install the new keys
ansible@172.31.3.94's password:
[ansible@ip-172-31-39-240 .ssh]$
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/