In our sample network, we will use SSH to set up the connection between Ansible and our Cisco devices. In this setup, Ansible will use SSH in order to establish the connection to our Cisco devices with a view to start managing it. We will use username/password authentication in order to authenticate our Ansible control node with our Cisco devices.
On the Cisco devices, we must ensure that SSH keys are present in order to have a functional SSH server on the Cisco devices. The following code snippet outlines the status of the SSH server on the Cisco device prior to generating the SSH keys:
wan01#show ip SSHSSH Disabled - version 2.0%Please create RSA keys to enable SSH (and of atleast 768 bits for SSH v2).Authentication methods:publickey,keyboard-interactive,password ...