Securing Ansible with SSH Keys: A Comprehensive Guide - Part 4

Поділитися
Вставка
  • Опубліковано 21 сер 2024

КОМЕНТАРІ • 17

  • @devendrajoshi9020
    @devendrajoshi9020 Рік тому +2

    You always explain the complex term in such a simple way. Thanks Rahul

  • @leandrojpg
    @leandrojpg Рік тому +3

    looking forward to learning more from you, thanks for helping and making these amazing videos.

  • @RAJ7111991
    @RAJ7111991 9 місяців тому +2

    What if i don't wanna copy id on remote server
    Is there any way to make connection like using variable or something else
    Lets assume i have 1500 servers for freshly setup ansible , in this case i don't wanna go for hit copy id command for every time

    • @The_Knowledge_Orbit
      @The_Knowledge_Orbit 8 місяців тому

      Bro do you got the answer.??..if you got it then please help me bro .same issue .iam facing

    • @RAJ7111991
      @RAJ7111991 7 місяців тому

      Yes i have found the answer
      First solution
      ansible_user ansible_password ansible_sudo_password
      Use this in inventory file for each host or either u can create host variable file in separate
      Use become method in cfg file or in playbook
      Then create two playbook, first for genrate for adding entries in nodes sudoer file
      Second playbook for permanent ssh connection between control and managed node
      Now u can delet variable from inventory
      Second solution
      U can use ansible_ssh_private_key_file variable
      First genrate public private key file

  • @samiryadav4538
    @samiryadav4538 Рік тому +1

    U deserve million subscribers..the way you explain is simply great ..❤❤

    • @RahulWagh
      @RahulWagh  Рік тому

      You welcome and keep learning

  • @sharathsachin001
    @sharathsachin001 Рік тому

    Amazing video, thank you Rahul. Please keep the videos coming 🙂👌👌

  • @cesargadea165
    @cesargadea165 Рік тому

    Hello! What if I added a passphrase to the ssh key? Won't Ansible run into authentication issues whenever trying to connect to the remote host? How can I achieve this simplicity with more hardened security?

  • @gorgeoussak
    @gorgeoussak Рік тому

    Hi, thanks for the video. Could you please ans the following question:
    Is there a way in ansible we can validate all public key’s present in authorised_keys file against a private key? I have multiple keys in my authorized_file and i want to check if all keys are good for connection one by one..

  • @JaspreetKaur-jq5im
    @JaspreetKaur-jq5im Місяць тому

    Great work sir.

  • @aradhanasoni6616
    @aradhanasoni6616 10 місяців тому

    Great explanation 👌

    • @RahulWagh
      @RahulWagh  10 місяців тому +1

      Glad you liked it

  • @srgrmohan
    @srgrmohan Рік тому

    Thanks