By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,593 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,593 IT Pros & Developers. It's quick & easy.

using paramiko problem? please help me

P: n/a

I want to connect to a Windows machine in my network , using ssh, I use
paramiko but I have problem in authentication, would you please help me?

1- I have installed freeSSHD in server machine? Is it necessery ? or may I
have to install another program?

2- I have entered server's Ip insted of hostname.Is it correct?

3- I have creat a user in server machine with a password to connect. Am I

4- I use this code in clinet computer? May I need another code for server
hostname = ""
username = "test"
port = 22
password = '123456'

# now connect
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect_ex((hostname, port))
except Exception, e:
print 'Connect failed: ' + str(e)

t = paramiko.Transport(sock)
event = threading.Event()
print "started client"

if not t.is_active():
print 'SSH negotiation failed.'
print "SSH negotiation sucessful"

print "doing authentication"
t.auth_password(username, password, event)

the result is :
started client
ssh negotiation sucessful
authentication failed

what should I do?
please help me , I am new in paramiko.
View this message in context:
Sent from the Python - python-list mailing list archive at

Oct 26 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.