Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > "Authentication failed" error using paramiko

Reply
Thread Tools

"Authentication failed" error using paramiko

 
 
sa6113
Guest
Posts: n/a
 
      10-21-2008

I am using this code to connect to a windows machine using paramiko, I have
installed sshd on the machine and it works properly:

sock.connect((hostname, port))
t = paramiko.Transport(sock)
event = threading.Event()
t.start_client(event)
event.wait()
if not t.is_active():
print 'SSH negotiation failed.'
sys.exit(1)
else:
print "SSH negotiation sucessful"
event.clear()
t.auth_password(username=username, password=password,event=event)

if not t.is_authenticated():
print "Authentication failed"

output:

SSH negotiation successful
Authentication failed

I uploaded log file I am sure about username and password on that machine.

What is the problem?

--
View this message in context: http://www.nabble.com/%22Authenticat...p20085687.html
Sent from the Python - python-list mailing list archive at Nabble.com.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paramiko Threading Error mud Python 1 06-15-2011 12:52 AM
Re: ssh problem using paramiko? sa6113 Python 4 10-09-2008 10:30 AM
ssh problem using paramiko? sa6113 Python 1 10-07-2008 06:38 PM
Paramiko SFTP autologon using id_dsa.pub Mike Hjorleifsson Python 7 02-14-2008 05:19 AM
Using Paramiko Greg Lindstrom Python 0 04-19-2005 05:17 PM



Advertisments