View Single Post
  #1  
Old 04-02-2020, 06:29 PM
powerponch powerponch is offline
Registered User
 
Join Date: Apr 2020
Posts: 4
SSH auth with Python - Random "Keyboard Interactive Authentication" pop-up

Hello. I am currently running a python script from a custom button which logins to a router. The login works normally OK, however in some cases a pop-up appears ("Keyboard Interactive Authentication") and asks for manual password input.

Since my script is intended to run without human supervision, this is an issue. Moreover, I haven't been able to determine under which circumstances this pop-up appears.

Does somebody know how to suppress the pop-up?

Below the code I'm using for login:

cmd = "/SSH2 /L %s /PASSWORD %s /C AES-128 /M SHA1 %s" % (HOST_USERNAME, HOST_PASSWORD, HOST)

crt.Session.Connect(cmd)

Reply With Quote