paramiko.BadAuthenticationType

Theta Sigma who at doctor.com
Tue Dec 4 13:10:42 EST 2012


Hi,

I'm trying to create a SSH connection with the paramiko module, and
I'm running to this error...

>> import os, paramiko
>> ssh = paramiko.SSHClient()
>> ssh.load_system_host_keys()
>> ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
>> ssh.connect('...',username='...',password='...')
Traceback (most recent call last):
  File "<stdin>", line 1 in <module>
  File "build\bdist.win-amd64\egg\paramiko\client,py", line 338, in
connect
  File "build\bdist.win-amd64\egg\paramiko\client.py", line 519, in
_auth
paramiko.BadAuthenticationType: Bad authentication type
(allowed_types=['publickey']
>> No handlers could be found for logger "paramiko.transport"


What am I doing wrong?

I'm running Python 2.7 on Windows 7, with paramiko-1.7.7.1



More information about the Python-list mailing list