librelist archives

« back to archive

BadAuthenticationType

BadAuthenticationType

From:
Dan Mahoney
Date:
2014-03-25 @ 20:08
I've got an interesting problem. I'm writing a snippet application (similar
to a plugin) to run inside of EM7 (a complex monitoring application, sort
of like nagios on steroids).  My code needs to make an ssh connection to
another machine and run a script, grabbing the text that gets written to
stderr.

When I run my script in the python interpreter it runs just fine. When I
let EM7 run it, I get
BadAuthenticationType: Bad authentication type (allowed_types = ['public
key', 'keyboard-interactive'])

Doesn't the "keyboard-interactive" part of allowed_types = ['public key',
'keyboard-interactive'] mean that username/password logins are allowed?

The code I'm trying to use looks like:

server = '192.168.21.31'
user = 'em7status'
passwd = 'the appropriate password'
timeout = 5
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(server, username=user, password=passwd, timeout=float(timeout),
allow_agent=True )


Suggestions as to why this is crapping out?

-- 
--------------------------
Dan Mahoney
catdude@gmail.com

My writing blog: catdudeswritings.blogspot.com

"How you behave towards cats here below determines your status in Heaven."
Robert Heinlein

"There are two means of refuge from the miseries of
life - music and cats" - Albert Schweitzer