Base class for use by transport protocol implementations.
Register a listener that will be notified of incoming messages and errors.
Unregister some listener; ignore if the listener was never registered.
If a listener of the specified type is registered, returns the instance.
Base class for Session listeners, which are notified when a new NETCONF message is received or an error occurs.
Avoid time-intensive tasks in a callback’s context.
Called when a new XML document is received. The root argument allows the callback to determine whether it wants to further process the document.
Called when an error occurs.
This default callback always returns False, which would lead to connect() raising a SSHUnknownHost exception.
Supply another valid callback if you need to verify the host key programatically.
Implements a RFC 4742 NETCONF session over SSH.
Connect via SSH and initialize the NETCONF session. First attempts the publickey authentication method and then password authentication.
To disable attemting publickey authentication altogether, call with allow_agent and look_for_keys as False.
Load host keys from a known_hosts-style file. Can be called multiple times.
If filename is not specified, looks in the default locations i.e. ~/.ssh/known_hosts and ~/ssh/known_hosts for Windows.