ssh client - can't send password

333 views
Skip to first unread message

Oriol

unread,
Sep 6, 2011, 1:18:50 AM9/6/11
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