scrapli / scrapli_netconf

Fast and flexible Python 3.7+ netconf client specifically for network devices
https://scrapli.github.io/scrapli_netconf/
MIT License
93 stars 6 forks source link

CRITICAL:scrapli.channel:password prompt seen more than once, assuming auth failed #133

Closed BluSpanner closed 1 year ago

BluSpanner commented 1 year ago

Describe the bug Getting the following error when attempting to connect to device via .open() on NetconfDriver via scrapli_netconf

password prompt seen more than once, assuming auth failed

To Reproduce Steps to reproduce the behavior:

  1. Your script

    from scrapli_netconf.driver import NetconfDriver
    device = {
    "host": "xxxxxxxxxxx2",
    "port": 22,
    "auth_username": "USERNAME",
    "auth_password": "PASSWORD",
    "auth_strict_key": False,
    "strip_namespaces": True
    }
    connection = NetconfDriver(**device)
    connection.open()
  2. What you're connecting to (vendor, platform, version) Cisco NCS-5501, 7.8.1

  3. Anything else relevant Using SSH, from command line, to connect to the device works fine. Note: The same python code works fine on 20+ other devices.

Expected behavior The .open() connects & returns successfully.

Stack Trace Copy of your stack trace here, please format it properly using triple back ticks (top left key on US keyboards!)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/neconfig/.pyenv/versions/netconf2/lib/python3.11/site-packages/scrapli_netconf/driver/sync_driver.py", line 117, in open
    self.channel.channel_authenticate_netconf(
  File "/home/neconfig/.pyenv/versions/netconf2/lib/python3.11/site-packages/scrapli/decorators.py", line 235, in decorate
    return wrapped_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/neconfig/.pyenv/versions/netconf2/lib/python3.11/site-packages/scrapli_netconf/channel/sync_channel.py", line 116, in channel_authenticate_netconf
    raise ScrapliAuthenticationFailed(msg)
scrapli.exceptions.ScrapliAuthenticationFailed: password prompt seen more than once, assuming auth failed

Screenshots N/A

OS (please complete the following information):

carlmontanari commented 1 year ago

👋

going to need logs and ideally channel logs as well. that exception is pretty clear and only ever happens when we see the password prompt multiple times. so, obviously could be typo, but other than that would need to see logs to see whats up probably.

BluSpanner commented 1 year ago

Logs below... (It this enough info?)

DEBUG:scrapli.driver:setting 'server_capabilities' value to '[]'
INFO:scrapli.driver:opening connection to 'xxxxxxxxxxx2' on port '22'
DEBUG:scrapli.transport:opening transport connection to 'xxxxxxxxxxx2' on port '22'
DEBUG:scrapli.transport:created transport 'open_cmd': '['ssh', 'xxxxxxxxxxx2', '-p', '22', '-o', 'ConnectTimeout=15', '-o', 'ServerAliveInterval=30', '-l', 'USERNAME', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', '-F', '/dev/null']'
DEBUG:scrapli.transport:final open_cmd: ['ssh', 'xxxxxxxxxxx2', '-p', '22', '-o', 'ConnectTimeout=15', '-o', 'ServerAliveInterval=30', '-l', 'USER', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', '-F', '/dev/null', '-tt', '-s', 'netconf']
DEBUG:scrapli.transport:transport connection to 'xxxxxxxxxxx2' on port '22' opened successfully
DEBUG:scrapli.channel:attempting in channel netconf authentication
DEBUG:scrapli.channel:read: b"Warning: Permanently added 'xxxxxxxxxxx2,2.2.2.2' (ECDSA) to the list of known hosts.\n"
DEBUG:scrapli.channel:read: b'\n\n*****************************************************************************************************************\n*                           UNAUTHORISED ACCESS TO THIS DEVICE IS PROHIBITED                                    *\n* You must have explicit, authorised permission to access or configure this device.        *\n* Unauthorised attempts and actions to access or use this system may result in civil and/or criminal penalties. *\n* All activities performed on this device are logged and monitored.                                             *\n*                                                                                                               *\n*****************************************************************************************************************\n\n'
DEBUG:scrapli.channel:read: b''
DEBUG:scrapli.channel:read: b'Password: '
DEBUG:scrapli.channel:write: REDACTED
DEBUG:scrapli.channel:write: '\n'
DEBUG:scrapli.channel:read: b'\n'
DEBUG:scrapli.channel:read: b'<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n <capabilities>\n  <capability>urn:ietf:params:netconf:base:1.1</capability>\n  <capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>\n  <capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>\n  <capability>urn:ietf:params:netconf:capability:validate:1.1</capability>\n  <capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>\n  <capability>urn:ietf:params:netconf:capability:notification:1.0</capability>\n  <capability>urn:ietf:params:netconf:capability:interleave:1.0</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-traps-syslog-cfg?module=Cisco-IOS-XR-um-traps-syslog-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-mld-oper?module=Cisco-IOS-XR-mld-oper&amp;revision=2022-04-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-password6-cfg?module=Cisco-IOS-XR-um-password6-cfg&amp;revision=2020-03-23&amp;features=type6_parser_check_input_type_with_platform_aes_msg</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ssh-cfg?module=Cisco-IOS-XR-um-ssh-cfg&amp;revision=2022-09-29</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-pbr-bng-cfg?module=Cisco-IOS-XR-pbr-bng-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-traps-rsvp-cfg?module=Cisco-IOS-XR-um-traps-rsvp-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-telemetry-model-driven-oper?module=Cisco-IOS-XR-telemetry-model-driven-oper&amp;revision=2021-09-13</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ncs5500-coherent-portmode-cfg?module=Cisco-IOS-XR-ncs5500-coherent-portmode-cfg&amp;revision=2021-09-18</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-ntp-oper?module=Cisco-IOS-XR-ip-ntp-oper&amp;revision=2022-02-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-pim-oper?mod'
DEBUG:scrapli.channel:write: REDACTED
DEBUG:scrapli.channel:write: '\n'
DEBUG:scrapli.channel:read: b'ule=Cisco-IOS-XR-pim-oper&amp;revision=2022-04-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg?module=Cisco-IOS-XR-pmengine-cfg&amp;revision=2021-12-17</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cinetd-cfg?module=Cisco-IOS-XR-um-cinetd-cfg&amp;revision=2020-03-27</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-pim-cfg?module=Cisco-IOS-XR-ipv4-pim-cfg&amp;revision=2020-01-30</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-ntp-admin-oper?module=Cisco-IOS-XR-ip-ntp-admin-oper&amp;revision=2022-01-25</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ha-eem-cfg?module=Cisco-IOS-XR-ha-eem-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-spirit-corehelper-cfg?module=Cisco-IOS-XR-spirit-corehelper-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dynamic-template-vrf-cfg?module=Cisco-IOS-XR-um-dynamic-templ'
DEBUG:scrapli.channel:read: b'ate-vrf-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-process-cfg?module=Cisco-IOS-XR-um-process-cfg&amp;revision=2021-03-31</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-wanphy-ui-cfg?module=Cisco-IOS-XR-wanphy-ui-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-router-mld-cfg?module=Cisco-IOS-XR-um-router-mld-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-protocol-radius-oper?module=Cisco-IOS-XR-aaa-protocol-radius-oper&amp;revision=2021-02-23</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-cfgmgr-cfs-check-act?module=Cisco-IOS-XR-cfgmgr-cfs-check-act&amp;revision=2020-09-10</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ncs5500-coherent-portmode-oper?module=Cisco-IOS-XR-ncs5500-coherent-portmode-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv6-nd-oper?module=Cisco-IOS-XR-ipv6-nd-oper&amp;revision=2019-11-08</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-mpls-static-cfg?module=Cisco-IOS-XR-um-mpls-static-cfg&amp;revision=2021-08-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ltrace-cfg?module=Cisco-IOS-XR-um-ltrace-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-mibs-ifmib-cfg?module=Cisco-IOS-XR-um-mibs-ifmib-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/cisco-semver?module=cisco-semver&amp;revision=2019-03-13</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-dot1x-cfg?module=Cisco-IOS-XR-dot1x-cfg&amp;revision=2022-03-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ethernet-lldp-oper?module=Cisco-IOS-XR-ethernet-lldp-oper&amp;revision=2022-04-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-crypto-cfg?module=Cisco-IOS-XR-um-crypto-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-remote-attestation-act?module=Cisco-IOS-XR-remote-attestation-act&amp;revision=2022-09-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-fault-profile-cfg?module=Cisco-IOS-XR-um-fault-profile-cfg&amp;revision=2021-12-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-mpls-ldp-mldp-oper?module=Cisco-IOS-XR-mpls-ldp-mldp-oper&amp;revision=2022-01-27</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv6-ma-cfg?module=Cisco-IOS-XR-ipv6-ma-cfg&amp;revision=2021-10-25</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-hsrp-oper?module=Cisco-IOS-XR-ipv4-hsrp-oper&amp;revision=2022-02-04</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-rt-check-cfg?module=Cisco-IOS-XR-infra-rt-check-cfg&amp;revision=2020-07-27</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-fibrechannelmib-cfg?module=Cisco-IOS-XR-fibrechannelmib-cfg&amp;revision=2021-12-17<'
DEBUG:scrapli.channel:read: b'/capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-mvpn-oper?module=Cisco-IOS-XR-mvpn-oper&amp;revision=2021-12-09</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dyn-tmpl-service-policy-cfg?module=Cisco-IOS-XR-um-dyn-tmpl-service-policy-cfg&amp;revision=2022-07-11&amp;features=qos_ui_supp_qfab_cfg,qos_ui_supp_spi</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-nacm-cfg?module=Cisco-IOS-XR-aaa-nacm-cfg&amp;revision=2022-04-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-nsr-cfg?module=Cisco-IOS-XR-infra-nsr-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ethernet-loopback-oper?module=Cisco-IOS-XR-ethernet-loopback-oper&amp;revision=2021-04-27</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-man-xml-ttyagent-oper?module=Cisco-IOS-XR-man-xml-ttyagent-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-traceroute-act?modul'
DEBUG:scrapli.channel:read: b'e=Cisco-IOS-XR-traceroute-act&amp;revision=2021-03-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-macsec-pl-oper?module=Cisco-IOS-XR-crypto-macsec-pl-oper&amp;revision=2022-04-08</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-tamsvcs-oper?module=Cisco-IOS-XR-tamsvcs-oper&amp;revision=2022-08-30</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cont-optics-speed-cfg?module=Cisco-IOS-XR-um-cont-optics-speed-cfg&amp;revision=2022-07-11&amp;features=optics</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-config-mode-cfg?module=Cisco-IOS-XR-um-config-mode-cfg&amp;revision=2021-02-02</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dyn-tmpl-opendns-cfg?module=Cisco-IOS-XR-um-dyn-tmpl-opendns-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-isis-act?module=Cisco-IOS-XR-isis-act&amp;revision=2019-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-X'
DEBUG:scrapli.channel:read: b'R-um-ftp-tftp-cfg?module=Cisco-IOS-XR-um-ftp-tftp-cfg&amp;revision=2021-05-12</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-if-mpls-cfg?module=Cisco-IOS-XR-um-if-mpls-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-controller-ains-act?module=Cisco-IOS-XR-controller-ains-act&amp;revision=2019-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-key-chain-cfg?module=Cisco-IOS-XR-um-key-chain-cfg&amp;revision=2021-01-05&amp;features=check_input_hex_string_length_typ6,check_input_hex_string_length,check_input_number</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-bgp-oper?module=Cisco-IOS-XR-ipv4-bgp-oper&amp;revision=2022-06-02</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-watchdog-cfg?module=Cisco-IOS-XR-um-watchdog-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-tunnel-gre-datatypes?module=Cisco-IOS-XR-tunnel-gre-datatypes&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-vrrp-oper?module=Cisco-IOS-XR-ipv4-vrrp-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-lpts-pifib-dynamic-flows-cfg?module=Cisco-IOS-XR-um-lpts-pifib-dynamic-flows-cfg&amp;revision=2022-07-11&amp;features=pifib_dynamic_flows_gl_config_check,pifib_dynamic_flows_lo_config_check,pifib_xipc_throt_policer_config_check,pifib_dynamic_flows_node_check</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-segment-routing-ms-common-cfg?module=Cisco-IOS-XR-segment-routing-ms-common-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-controller-odu-oper?module=Cisco-IOS-XR-controller-odu-oper&amp;revision=2022-02-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ssm-cfg?module=Cisco-IOS-XR-um-ssm-cfg&amp;revision=2021-01-18</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-l2-eth-infra-cfg?module=Cisco-IOS-XR-l2-eth-infra-cfg&amp;revision=2022-05-18</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-igmp-oper?module=Cisco-IOS-XR-igmp-oper&amp;revision=2022-04-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-macsec-mka-if-cfg?module=Cisco-IOS-XR-crypto-macsec-mka-if-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-lib-type6-act?module=Cisco-IOS-XR-lib-type6-act&amp;revision=2021-04-06</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ethernet-cfm-cfg?module=Cisco-IOS-XR-um-ethernet-cfm-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-router-rip-cfg?module=Cisco-IOS-XR-um-router-rip-cfg&amp;revision=2021-12-27</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ztp-cfg?module=Cisco-IOS-XR-ztp-cfg&amp;revision=2019-04-05</capability>\n  <capability>urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&amp;revision=2011-06-01&amp;features=writable-running,candidate,confirmed-commit,rollback-on-error,validate,startup,url,xpath</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-sam-oper?module=Cisco-IOS-XR-crypto-sam-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ssh-act?module=Cisco-IOS-XR-ssh-act&amp;revision=2021-09-02</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-terminal-device-oper?module=Cisco-IOS-XR-terminal-device-oper&amp;revision=2020-05-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-config-mibs-cfg?module=Cisco-IOS-XR-config-mibs-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ethernet-link-oam-cfg?module=Cisco-IOS-XR-ethernet-link-oam-cfg&amp;revision=2020-04-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-iarm-v4-oper?module=Cisco-IOS-XR-ip-iarm-v4-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-bundlemgr-oper?module=Cisco-'
DEBUG:scrapli.channel:read: b'IOS-XR-bundlemgr-oper&amp;revision=2022-02-16</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-iarm-v6-oper?module=Cisco-IOS-XR-ip-iarm-v6-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-eigrp-oper?module=Cisco-IOS-XR-eigrp-oper&amp;revision=2020-09-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cfg-mibs-cfg?module=Cisco-IOS-XR-um-cfg-mibs-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cont-port-mode-cfg?module=Cisco-IOS-XR-um-cont-port-mode-cfg&amp;revision=2022-09-15&amp;features=optics</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-controller-ots-tone-pattern-detect-act?module=Cisco-IOS-XR-controller-ots-tone-pattern-detect-act&amp;revision=2021-12-24</capability>\n  <capability>urn:ietf:params:xml:ns:netconf:notification:1.0?module=notifications&amp;revision=2008-07-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-tunnel-l2tun-proto-mibs-cfg?module=Cisco-IOS-XR-tunnel-l2tun-proto-mibs-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cont-sts-cfg?module=Cisco-IOS-XR-um-cont-sts-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-rmf-oper?module=Cisco-IOS-XR-infra-rmf-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-lib-keychain-act?module=Cisco-IOS-XR-lib-keychain-act&amp;revision=2019-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-if-ipv6-cfg?module=Cisco-IOS-XR-um-if-ipv6-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dynamic-template-ipv4-cfg?module=Cisco-IOS-XR-um-dynamic-template-ipv4-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-aaa-radius-server-cfg?module=Cisco-IOS-XR-um-aaa-radius-server-cfg&amp;revision=2022-07-11&amp;features=check_input_typ6_validity</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-attestation-agent-oper?module=Cisco-IOS-XR-attestation-agent-oper&amp;revision=2022-06-03</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-shellutil-delete-act?module=Cisco-IOS-XR-shellutil-delete-act&amp;revision=2019-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-infra-cfg?module=Cisco-IOS-XR-infra-infra-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-cli-alias-cfg?module=Cisco-IOS-XR-um-cli-alias-cfg&amp;revision=2022-06-03</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-line-general-cfg?module=Cisco-IOS-XR-um-line-general-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-traps-selective-vrf-download-cfg?module=Cisco-IOS-XR-um-traps-selective-vrf-download-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-I'
DEBUG:scrapli.channel:read: b'OS-XR-um-traps-power-cfg?module=Cisco-IOS-XR-um-traps-power-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-syslog-act?module=Cisco-IOS-XR-syslog-act&amp;revision=2019-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-kim-tpa-cfg?module=Cisco-IOS-XR-kim-tpa-cfg&amp;revision=2022-05-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-syslog-cfg?module=Cisco-IOS-XR-infra-syslog-cfg&amp;revision=2022-04-29</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-infra-sla-cfg?module=Cisco-IOS-XR-infra-sla-cfg&amp;revision=2021-09-29</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-call-home-cfg?module=Cisco-IOS-XR-call-home-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-lpts-punt-cfg?module=Cisco-IOS-XR-um-lpts-punt-cfg&amp;revision=2022-07-11&amp;features=pifib_punt_policer_config_check,pifib_local_punt_policer_config_check,pifib_punt_policer_b'
DEBUG:scrapli.channel:read: b'cast_config_check,pifib_domains_config_check,pifib_policer_node_check</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-snmp-ifmib-oper?module=Cisco-IOS-XR-snmp-ifmib-oper&amp;revision=2022-02-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-gnss-cfg?module=Cisco-IOS-XR-gnss-cfg&amp;revision=2020-04-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-spirit-corehelper-context-oper?module=Cisco-IOS-XR-spirit-corehelper-context-oper&amp;revision=2020-10-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-aaa-tacacs-server-cfg?module=Cisco-IOS-XR-um-aaa-tacacs-server-cfg&amp;revision=2022-07-11&amp;features=check_input_typ6_validity</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-flowspec-oper?module=Cisco-IOS-XR-flowspec-oper&amp;revision=2022-07-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-fib-common-oper?module=Cisco-IOS-XR-fib-common-oper&amp;revision=2022-06-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ethernet-services-access-list-cfg?module=Cisco-IOS-XR-um-ethernet-services-access-list-cfg&amp;revision=2022-09-19&amp;features=es_acl_supported,es_acl_capture_implemented,es_acl_log_option_supported</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ptp-datatypes?module=Cisco-IOS-XR-ptp-datatypes&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-controller-odu-cfg?module=Cisco-IOS-XR-controller-odu-cfg&amp;revision=2021-12-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-rsvp-cfg?module=Cisco-IOS-XR-ip-rsvp-cfg&amp;revision=2022-04-25</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ethernet-sla-cfg?module=Cisco-IOS-XR-um-ethernet-sla-cfg&amp;revision=2022-10-14</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dynamic-template-igmp-cfg?module=Cisco-IOS-XR-um-dynamic-template-igmp-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-statistics-cfg?module=Cisco-IOS-XR-um-statistics-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-gnss-receiver-cfg?module=Cisco-IOS-XR-um-gnss-receiver-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ethernet-cfm-act?module=Cisco-IOS-XR-ethernet-cfm-act&amp;revision=2020-11-19</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ascii-ltrace-oper?module=Cisco-IOS-XR-ascii-ltrace-oper&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-iarm-datatypes?module=Cisco-IOS-XR-ip-iarm-datatypes&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-gl-cfg?module=Cisco-IOS-XR-pmengine-gl-cfg&amp;revision=2020-08-20</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-igp-topodb-oper?module=Cisco-IOS-XR-igp-topodb-oper&amp;revision=2022-04-06</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-opticalmib-cfg?module=Cisco-IOS-XR-opticalmib-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-drivers-media-eth-oper?module=Cisco-IOS-XR-drivers-media-eth-oper&amp;revision=2022-06-08</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-arp-oper?module=Cisco-IOS-XR-ipv4-arp-oper&amp;revision=2022-06-10</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ptp-pd-cfg?module=Cisco-IOS-XR-ptp-pd-cfg&amp;revision=2021-12-15</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-optics-fan-control-cfg?module=Cisco-IOS-XR-optics-fan-control-cfg&amp;revision=2021-07-29</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-aaa-diameter-cfg?module=Cisco-IOS-XR-um-aaa-diameter-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-diameter-base-mib-cfg?module=Cisco-IOS-XR-aaa-diameter-base-mib-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-nto-mi'
DEBUG:scrapli.channel:read: b'sc-oper?module=Cisco-IOS-XR-nto-misc-oper&amp;revision=2022-01-25</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-linux-security-showenc-oper?module=Cisco-IOS-XR-linux-security-showenc-oper&amp;revision=2021-07-01</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-ip-static-ipv6-oper?module=Cisco-IOS-XR-ip-static-ipv6-oper&amp;revision=2021-10-29</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-dyn-tmpl-monitor-session-cfg?module=Cisco-IOS-XR-um-dyn-tmpl-monitor-session-cfg&amp;revision=2022-10-03</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-snmp-syslogmib-cfg?module=Cisco-IOS-XR-snmp-syslogmib-cfg&amp;revision=2019-04-05</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-aaa-task-user-cfg?module=Cisco-IOS-XR-um-aaa-task-user-cfg&amp;revision=2022-09-06&amp;features=pslib_check_password</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-segment-routing-ms-cfg?module=Cisco-IOS-XR-segment-routing-ms-cfg&amp;revision=2019-06-19</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-netconf-yang-cfg?module=Cisco-IOS-XR-um-netconf-yang-cfg&amp;revision=2021-11-22</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-hw-module-subslot-cfg?module=Cisco-IOS-XR-um-hw-module-subslot-cfg&amp;revision=2020-09-22</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-router-hsrp-cfg?module=Cisco-IOS-XR-um-router-hsrp-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-um-ethernet-sat-cfg?module=Cisco-IOS-XR-um-ethernet-sat-cfg&amp;revision=2022-07-11</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-locald-oper?module=Cisco-IOS-XR-aaa-locald-oper&amp;revision=2022-01-22</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS-XR-procthreadname-oper?module=Cisco-IOS-XR-procthreadname-oper&amp;revision=2022-07-07</capability>\n  <capability>http://cisco.com/ns/yang/Cisco-IOS'
CRITICAL:scrapli.channel:password prompt seen more than once, assuming auth failed
carlmontanari commented 1 year ago

this probably needs to get sorted to look like more like scrapli core here I think. just catching too much due to lazy in buf check. absolute easiest (and probably not the best) fix would be to just add : after the password but makes sense to do it w/ re like scrapli core I think.

if you're up for a pr that'd be great. otherwise will get to it... just eventually... 🙃

edit if you dont mind using paramiko/ssh2 in the meantime that wont have this problem btw.

carlmontanari commented 1 year ago

👋 can you give this branch a test to see if that sorts it?

carlmontanari commented 1 year ago

will just merge #134 to main and close this out, holler if that didn't sort it out so we can re-investigate