Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added


creating a SSH key

...

https://valdhaus.co/writings/ansible-post-install/




1- create the private & Public key on the Client:  ssh-keygen

passphrase: Mai....3!xxxxxxxxxxxxxx


RSA:

 -Asymmetric Encryption: Private and Public key

...

 - Advanced Encryptiuon Standard



/root/.ssh/


Public Key:


2- copy the public key to the server: ssh-copy-id


after the ssh-copy-id, on the remote server: before/after


3- To set up SSH agent to avoid retyping passwords, you can do:


http://docs.ansible.com/ansible/intro_getting_started.html

...

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyKQ+IXr/yiLt7N/SSh4++V8G3K0ZoU1Pi/M85D/5Gtuh6kq6DAqk/F/lUxc0QFZNVGB9r1fCyVtwuGVhxaImXbziB0gRbBG2uclwwH0bbQUDNm+MJ5QtXjRGCmelNa5DpzfdVI8MzkJN+TI+9PJm1CuuyfBIId554IiFOKsCmt8ORCkU4X+zdXkwZeMv+7jW9sqgYHbEU7m3DU1goJYko8mKMZabpkDUu1sxktGXgMEb3uanID5ViV4VSSxv8c9yVe896cXTmZBra0Dq2NU6WWRWe/fvcukeIO5knNiGTBCpbgpNZM3u11rYbzni/Nun7oKDqBg6+aO4EI0tDn4ZP /root/.ssh/id_rsa



4- SSH test ( will ask for the passphrase once!)







5- check the Local keys:







6- check the Remote keys: