Groups
Groups
Sign in
Groups
Groups
winpexpect
Conversations
About
Send feedback
Help
ssh client - can't send password
333 views
Skip to first unread message
Oriol
unread,
Sep 6, 2011, 1:18:50 AM
9/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to winpexpect
Hi,
Thanks for that useful module for windows.
I'm having a problem when I try to sendline(password) after having
opened ssh. So I do
self.child = winspawn(ssh IP....)
#I take care of the possibles answers
self.child.sendline(password)
#and here it stays forever
I went deep to your code and it gets till:
c = os.write(self.child_fd, s.encode('ascii'))
but it stays in that line forever.
Any suggestions?
Reply all
Reply to author
Forward
0 new messages