Refer to the exhibit.
What does the snippet of code achieve?
It creates a temporary connection to a Cisco Nexus device and retrieves a token to be used for API calls.
It opens a tunnel and encapsulates the login information, if the host key is correct.
It opens an ncclient connection to a Cisco Nexus device and maintains it for the duration of the context.
It creates an SSH connection using the SSH key that is stored, and the password is ignored.
Submit