In this recipe, we will outline how to connect and authenticate to Juniper devices from Ansible via Secure Shell (SSH), in order to start managing the Juniper devices. We are going to outline how to use SSH keys as the authentication method to establish communication between Ansible and the Juniper devices.
Connecting and authenticating to Juniper devices
Getting ready
In order to follow along with this recipe, an Ansible inventory file should be constructed as per the previous recipe. IP reachability between the Ansible control machine and all the devices in the network must be configured.