I am testing the connection to IOS XR Always-On Sandbox using ncclient.
The code should be quite straight forward
from ncclient import manager
with manager.connect(
host='sandbox-iosxr-1.cisco.com', # IP address of device
port=830, # Port to connect to
username='admin', # SSH Username
password='C1sco12345', # SSH Password
hostkey_verify=False, # Allow unknown hostkeys not in local store
device_params={'name':'iosxr'} # Device connection parameters
) as m: # Context manager reference, i.e. instance of connected manager
# Print out the NETCONF XML capabilities as reported by the device
print(m.server_capabilities)
Unfortunately, I'v got AnthenticationError again
ncclient.transport.errors.AuthenticationError: AuthenticationException('Authentication timeout.')
Any idea?