paramiko.BadAuthenticationType

Discussion in 'Python' started by Theta Sigma, Dec 4, 2012.

  1. Theta Sigma

    Theta Sigma Guest

    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
    Theta Sigma, Dec 4, 2012
    #1
    1. Advertising

  2. Theta Sigma

    Guest

    , Dec 6, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg Lindstrom

    Using Paramiko

    Greg Lindstrom, Apr 19, 2005, in forum: Python
    Replies:
    0
    Views:
    456
    Greg Lindstrom
    Apr 19, 2005
  2. loial
    Replies:
    0
    Views:
    304
    loial
    Jun 21, 2007
  3. dmorilha

    Paramiko performance doubts...

    dmorilha, Sep 1, 2007, in forum: Python
    Replies:
    0
    Views:
    389
    dmorilha
    Sep 1, 2007
  4. Tarun Kapoor

    Paramiko/SSH blues....

    Tarun Kapoor, Jan 16, 2008, in forum: Python
    Replies:
    0
    Views:
    335
    Tarun Kapoor
    Jan 16, 2008
  5. Guilherme Polo

    Re: paramiko

    Guilherme Polo, Jan 16, 2008, in forum: Python
    Replies:
    8
    Views:
    471
    Guilherme Polo
    Jan 16, 2008
Loading...

Share This Page