Could you please advise on why I get the following error message when trying to login on a ios_xr device:
account = Exscript.protocols.Account("xxx", "xxx")
conn = Exscript.protocols.SSH2(driver="ios_xr", connect_timeout=10, debug=9)
conn.connect("xxx")
ios_xr: Rejecting ssh-rsa host key for xxx: b'ff8f7b3fa68e4ffa9626badbbed71bdf'
conn.login(account)
ios_xr: Attempting to authenticate xxx.
ios_xr: auth_none failed, supported: ['password']
ios_xr: Authenticating with _paramiko_auth_password
ios_xr: Authentication with _paramiko_auth_password failed: Authentication timeout.
---------------------------------------------------------------------------
LoginFailure Traceback (most recent call last)
<ipython-input-50-2f8dbd07086c> in <module>
----> 1 conn.login(account)
/usr/local/lib64/python3.6/site-packages/Exscript/protocols/protocol.py in login(self, account, app_account, flush)
673 if app_account is None:
674 app_account = account
--> 675 self.authenticate(account, flush=False)
676 if self.get_driver().supports_auto_authorize():
677 self.expect_prompt()
/usr/local/lib64/python3.6/site-packages/Exscript/protocols/protocol.py in authenticate(self, account, app_account, flush)
698
699 if not self.proto_authenticated:
--> 700 self.protocol_authenticate(account)
701 self.app_authenticate(app_account, flush=flush)
702
/usr/local/lib64/python3.6/site-packages/Exscript/protocols/protocol.py in protocol_authenticate(self, account)
725 if key is None:
726 self._dbg(1, "Attempting to authenticate %s." % user)
--> 727 self._protocol_authenticate(user, password)
728 else:
729 self._dbg(1, "Authenticate %s with key." % user)
/usr/local/lib64/python3.6/site-packages/Exscript/protocols/ssh2.py in _protocol_authenticate(self, user, password)
337
338 def _protocol_authenticate(self, user, password):
--> 339 self._paramiko_auth(user, password)
340 self._paramiko_shell()
341
/usr/local/lib64/python3.6/site-packages/Exscript/protocols/ssh2.py in _paramiko_auth(self, username, password)
316 self._dbg(1, msg)
317 errors.append(msg)
--> 318 raise LoginFailure('Login failed: ' + '; '.join(errors))
319
320 def _paramiko_shell(self):
LoginFailure: Login failed: Authentication with _paramiko_auth_password failed: Authentication timeout.
PS. connectivity is in place
$ ssh xxx
************************************************************************
Line: $(line) Hostname: xxx
************************************************************************
* *
* THIS SYSTEM IS FOR THE USE OF AUTHORISED USERS ONLY! *
* *
* For unauthorized users all access is prohibited and protected by *
* international law. *
* *
* Individuals using this system are subject to having all of their *
* activities on this system monitored, logged and checked by systems *
* and personnel. *
* *
* When you login to this host you automatically agree with the above *
* mentioned terms! *
* *
************************************************************************
xxx@xxx's password:
Hi,
Could you please advise on why I get the following error message when trying to login on a
ios_xr
device:PS. connectivity is in place