467,145 Members | 1,015 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,145 developers. It's quick & easy.

authenticated problem for paramiko


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?

http://www.nabble.com/file/p19898048/paramiko.log paramiko.log
--
View this message in context: http://www.nabble.com/authenticated-...p19898048.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 9 '08 #1
  • viewed: 775
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by hanjar | last post: by
2 posts views Thread by eight02645999@yahoo.com | last post: by
reply views Thread by dmorilha | last post: by
reply views Thread by washakie | last post: by
1 post views Thread by Terry Reedy | last post: by
1 post views Thread by sa6113 | last post: by
reply views Thread by sa6113 | last post: by
reply views Thread by sa6113 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.